Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I've developed a simple "slidey bar" made up of a series of coloured Labels in a UserForm. The "slidey bar" shows the progress of some VBA code as it performs an operation on a workbook. Each element of the "slidey bar" is called Bar1, Bar2 etc and each is made visible as the code progresses. From the point of view of neatness it would be better to have something like "Bar" & var.visible = true and increment var after each operation. However at the moment I have Bar 1, Bar2 through to Bar30.visible = true which looks awful especially when I set each one of them to invisible at the beginning of the code. Suggestions...Chris |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
me.Controls("Bar" & var).Visible Bob Umlas Excel MVP "Chris Gorham" wrote in message ... Hi, I've developed a simple "slidey bar" made up of a series of coloured Labels in a UserForm. The "slidey bar" shows the progress of some VBA code as it performs an operation on a workbook. Each element of the "slidey bar" is called Bar1, Bar2 etc and each is made visible as the code progresses. From the point of view of neatness it would be better to have something like "Bar" & var.visible = true and increment var after each operation. However at the moment I have Bar 1, Bar2 through to Bar30.visible = true which looks awful especially when I set each one of them to invisible at the beginning of the code. Suggestions...Chris |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform Label | Excel Discussion (Misc queries) | |||
Asigning a value to words | Excel Discussion (Misc queries) | |||
Userform Label question | Excel Programming | |||
Userform - Label Caption - How to update from a variable | Excel Programming | |||
changing selected label on userform w/ a variable | Excel Programming |