View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Coza Coza is offline
external usenet poster
 
Posts: 38
Default How can i Enable/Disable CommandButtons from Wkbook Open event ???

Private Sub Workbook_Open()
Sheets("Intro").Activate
With Application
MsgBox "Welcome " & "*** " & .UserName & " ***" & " to the Tracker
File.", vbInformation
End With
If Sheets("Data").Range("A1").Value = "" Then
CommandButton1.Enabled = False
Else
CommandButton1.Enabled = True
End If
End Sub

The above code returns a Compile error.

How can i get it to work?

Corey....