R
rjudge
I have a userform with 2 command buttons. When I click the first one it
goes to another workbook and brings back data. When I click the second
one it does nothing but when I click it again it works. Why is it
taking 2 clicks for it to work...Robbie
Private Sub get1262_Click()
ChDir "P:\"
Workbooks.Open(Filename:="P:\1262goaling.xls").RunAutoMacros
Which:= _
xlAutoOpen
End Sub
Private Sub get1264_Click()
ChDir "P:\"
Workbooks.Open(Filename:="P:\1264goaling.xls").RunAutoMacros
Which:= _
xlAutoOpen
End Sub
goes to another workbook and brings back data. When I click the second
one it does nothing but when I click it again it works. Why is it
taking 2 clicks for it to work...Robbie
Private Sub get1262_Click()
ChDir "P:\"
Workbooks.Open(Filename:="P:\1262goaling.xls").RunAutoMacros
Which:= _
xlAutoOpen
End Sub
Private Sub get1264_Click()
ChDir "P:\"
Workbooks.Open(Filename:="P:\1264goaling.xls").RunAutoMacros
Which:= _
xlAutoOpen
End Sub