caulifllower
New Member
- Joined
- Mar 16, 2009
- Messages
- 3
Hello, I just started learning vb in excel. I'm working on creating a userform for multipletasks buttons. However, I'm not sure exctly how to fix this. Currently this is how the code looks like. Please see below.
Basically all the buttons are located in sheet called Start under the file name !button. i want to click the classification button and it will copy the form from P:\Closing\Forms\Classification.xlsx into my a new sheet of the
!button file. And after when i rename the !button worksheet, i would still allow me to copy other from into the same file at a later time.
Private Sub Classification_Click()
Workbooks.Open Filename:="P:\Closing\Forms\Classification.xlsx"
Sheets("Classification").Select
Sheets("Classification").Copy Before:=Workbooks("!buttons.xlsm").Sheets(1)
Windows("Classification.xlsx").Activate
ActiveWindow.Close
End Sub
Basically all the buttons are located in sheet called Start under the file name !button. i want to click the classification button and it will copy the form from P:\Closing\Forms\Classification.xlsx into my a new sheet of the
!button file. And after when i rename the !button worksheet, i would still allow me to copy other from into the same file at a later time.
Private Sub Classification_Click()
Workbooks.Open Filename:="P:\Closing\Forms\Classification.xlsx"
Sheets("Classification").Select
Sheets("Classification").Copy Before:=Workbooks("!buttons.xlsm").Sheets(1)
Windows("Classification.xlsx").Activate
ActiveWindow.Close
End Sub