Shalbriri
Board Regular
- Joined
- Nov 4, 2010
- Messages
- 93
Code:
Dim sh as Worksheet
For Each sh in ActiveWorkbook.Worksheets
sh.BlueLabel.Caption = sh.BlueLabel.Caption + 1
Next sh
but it doesn't work. but it should since the labels are ActiveX Controls and when code is written
Code:
BlueLabel.caption = BlueLabel.Caption +1
EDIT:
Forgot to add the error also:
compile error
Method or data member not found
Last edited: