Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default change attributes of numberous textboxes

To all

Was wondering if there was a way to change to properties (say visible) of
numerous textboxes at once.

I have tried a for loop with i and then textbox(i) or textbox (format (i))
and even name1= "textbox" + format (i) then name1.visible but nothing works!

Is there a way to change them all or do i have to type them all out?

AHGA

Shawn


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default change attributes of numberous textboxes


for i = 1 to 10
userform1.Controls("Textbox" & i).Visible = False
Next

for a worksheet

for i = 1 to 10
activesheet.OleObjects("Textbox" & i).Visible = False
Next i

this assumes these are textboxes from the control toolbox toolbar with names
like Textbox1, Textbox2, up to Textbox10.

--
Regards,
Tom Ogilvy



"Shawn" wrote in message
...
To all

Was wondering if there was a way to change to properties (say visible) of
numerous textboxes at once.

I have tried a for loop with i and then textbox(i) or textbox (format (i))
and even name1= "textbox" + format (i) then name1.visible but nothing

works!

Is there a way to change them all or do i have to type them all out?

AHGA

Shawn




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default change attributes of numberous textboxes

Tom

THKS!!! You saved me a whole lot of typing!!

Thanks again!

Shawn

"Tom Ogilvy" wrote in message
...

for i = 1 to 10
userform1.Controls("Textbox" & i).Visible = False
Next

for a worksheet

for i = 1 to 10
activesheet.OleObjects("Textbox" & i).Visible = False
Next i

this assumes these are textboxes from the control toolbox toolbar with

names
like Textbox1, Textbox2, up to Textbox10.

--
Regards,
Tom Ogilvy



"Shawn" wrote in message
...
To all

Was wondering if there was a way to change to properties (say visible)

of
numerous textboxes at once.

I have tried a for loop with i and then textbox(i) or textbox (format

(i))
and even name1= "textbox" + format (i) then name1.visible but nothing

works!

Is there a way to change them all or do i have to type them all out?

AHGA

Shawn






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
ATTRIBUTES UNION HELP Excel Discussion (Misc queries) 0 March 10th 08 07:32 PM
Changing attributes Jim Saunders Excel Discussion (Misc queries) 1 March 28th 07 03:06 AM
Data value display attributes linked to table attributes MDT at Paragon Home Inspections, LLC Charts and Charting in Excel 0 November 15th 06 12:53 AM
How do I change font attributes in a Concatenate statement? DHD58 Excel Worksheet Functions 3 May 29th 05 04:14 PM
Different text attributes... rci Excel Programming 1 February 26th 04 07:12 PM


All times are GMT +1. The time now is 10:25 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"