View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PCLIVE PCLIVE is offline
external usenet poster
 
Posts: 1,311
Default Naming UserForm CommandButtons using VBA

This is slightly different than something I asked yesterday. Unfortunately,
applying yesterday's solution method does not work for this.
I'm trying to name a series of command buttons on a UserForm. Can you use
code to name commandbuttons on a Userform? This is what I got which doesn't
work.


For i = 1 To 37
c = 38

UserForm3.Controls("CommandButton" & i).Name = "M" & c

c = c + 1
Next i


Thanks,
Paul