View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mark Kubicki Mark Kubicki is offline
external usenet poster
 
Posts: 89
Default using variable for a control name

can a variable be used as a control name?

Dim i As Integer
Dim cnDayLabel As Control 'or should this be as a String?

For i = 1 To 7
cnDayLabel = "DayLabel" & i
cnDayLabel.Visible = False
Next i