Thread
:
How do I cycle through buttons in a FOR loop?
View Single Post
#
3
Posted to microsoft.public.excel.programming
merjet
external usenet poster
Posts: 812
How do I cycle through buttons in a FOR loop?
Assuming TempForm is a UserForm with CommandButtons:
On Error Resume Next
For i = 1 To Worksheets.Count
TempForm.Controls("CommandButton" & i).Caption =
Worksheets(i).Name
Next i
Hth,
Merjet
Reply With Quote
merjet
View Public Profile
Find all posts by merjet