Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Same task for Multiple fields

In a macro, I know you can DIM muiltiple fields to same format, but can you
do the same for labels, textboxes, etc., on a userform, ie Label1.Visible,
Label2.Visible = TRUE?

Thanks,
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Same task for Multiple fields

"Dim" declares variables (as types, if they are included), but doesn't
assign "format". Some types have default values (e.g., a variable of
type Long will be initialized with the value 0 and a variable of type
Boolean will be initialized with the value False)

Labels and Textboxes are objects. Objects have properties, such as the
..Visible property. Properties have default values as well.

Unless the objects belong to a Collection that allows the assignment of
properties for all elements of the collection (e.g., Cells.Font.Bold =
True), which Labels do not, you need to assign property values
individually.




In article ,
WLMPilot wrote:

In a macro, I know you can DIM muiltiple fields to same format, but can you
do the same for labels, textboxes, etc., on a userform, ie Label1.Visible,
Label2.Visible = TRUE?

Thanks,
Les

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
Excel Viewer: multiple docs in Task bar (XP) John H Meyers Excel Discussion (Misc queries) 0 March 13th 08 01:56 PM
Multiple Fields In Multiple Ranged Pivot Table FARAZ QURESHI Excel Discussion (Misc queries) 0 September 19th 07 07:08 AM
Comparing multiple fields in an array with multiple fields in a table. [email protected] Excel Programming 2 June 14th 07 11:51 PM
Multiple Task needed in Excel Martin Excel Discussion (Misc queries) 2 April 18th 06 01:26 AM
Multiple Excel on Task bar Craig Excel Discussion (Misc queries) 3 September 9th 05 07:11 PM


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