View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jason[_31_] Jason[_31_] is offline
external usenet poster
 
Posts: 2
Default renaming array of controls

from the default CommandButton1,2,3........100.

to

MyCmb1,2,3.....100


I tried

Dim x As Single
For x = 1 To 100
Controls("CommandButton" & x).Name = "MyCmb" & x
Next x

error "Can't set at runtime"

how else can I quickly change these?