Avatar of Bright01
Bright01
Flag for United States of America asked on

Clear a Text Box

EE Pros,

I have attached a simple WB that has a Textbox on WS1 and a macro I tried to write to clear it and start anew.  Alas, it won't clear.  

Any help would be appreciated.

B.
ClearTextBox.xlsm
Microsoft OfficeMicrosoft ExcelVBA

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Subodh Tiwari (Neeraj)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Shums Faruk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Subodh Tiwari (Neeraj)

@Shums
What is new in your code? :)
Bright01

ASKER
Great job guys. Both solutions work.  It would be handy if you could give me a little more context around the differences in the approaches.

Much thanks!

B.
Subodh Tiwari (Neeraj)

You're welcome B!
BTW both the solutions were exactly the same if I am not missing something hidden. :)
Your help has saved me hundreds of hours of internet surfing.
fblack61
Bright01

ASKER
One uses "me.shames" and the other says "activesheet".

B.
Subodh Tiwari (Neeraj)

Since the code was placed on the Worksheet module itself so Me can be used which is equivalent to Sheet1. ActiveSheet.is more generic.