Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I Have a UserForm with many identical TextBoxes. I need to
populate them with varying types of format (ie backcolor, forecolor, fontcolor etc) How can I do so, perhaps with a "For Each" loop, rather than writing a separate code block for each one. I have tried things like:- "For each TextBox in UserForm1"...... and "For Count = 8 to 49 step 1 TextBox(Count).BackColor = something" but either get "method not supported" or my syntax is wrong. Can anyone suggest code which will do this and if so, where would it go - ie in a separate module, or in the code for the TextBox and if the latter would the Subroutine be a "Sub Initialise_???" Any ideas would be greatly appreciated. Don |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
finding multiple code dates for multiple item number | Excel Worksheet Functions | |||
Count multiple cells against multiple criteria in an Excel spreads | Excel Worksheet Functions | |||
Automated multiple text files into multiple sheets in one workbook | Excel Discussion (Misc queries) | |||
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents | Excel Discussion (Misc queries) | |||
view multiple files in multiple windows on multiple screens. | Excel Discussion (Misc queries) |