Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jerry Dyben
 
Posts: n/a
Default In Excel need macro to tell if Text Box is Blank or has Text

In Excel I need a macro to tell me if the Text Box Number is Blank or has
Text in it.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Textboxes on the worksheet?

'if from the control toolbox toolbar
MsgBox Len(Worksheets("sheet1").TextBox1.Value)

'if from the Drawing toolbar
MsgBox Len(Worksheets("sheet1").TextBoxes("Text box 2").Text)

You could just look to see if it was equal to "", too.



Jerry Dyben wrote:

In Excel I need a macro to tell me if the Text Box Number is Blank or has
Text in it.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert text in a cell with a macro kayabob Excel Discussion (Misc queries) 5 June 22nd 05 05:43 PM
How do I change macro text with another macro? Eric Excel Discussion (Misc queries) 4 April 27th 05 11:20 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
No Smart Tag help: just a blank "MS Excel Help" window - Excel 2003 Ian Ripsher Excel Discussion (Misc queries) 0 November 26th 04 08:43 PM
Inserting Blank Rows Macro? Michael Saffer Excel Worksheet Functions 2 November 9th 04 06:23 PM


All times are GMT +1. The time now is 09:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"