Dim your variable at the top of the macro as the correct variable type, proper basic programming:
![]()
Option Explicit Private Sub CommandButton1_Click() Dim y As Long 'etc....
Dim your variable at the top of the macro as the correct variable type, proper basic programming:
![]()
Option Explicit Private Sub CommandButton1_Click() Dim y As Long 'etc....
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks