Hi
I am trying to write a VBA for copying worksheet from a workbook selected by user to current workbook. Name of current workbook is Test Template, copying to worksheet named 'SCHEDULE'. After copying, user will be directed to another worksheet named "MAIN". Why is there a message that large amount of information is on clipboard, asking user to save or delete the information?
My VBA looks like this:
Dim fNameAndPath As Variant, wb As Workbook
fNameAndPath = Application.GetOpenFilename(FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Select File To Be Opened")
If fNameAndPath = False Then Exit Sub
Set wb = Workbooks.Open(fNameAndPath)
Cells.Select
Selection.Copy
Windows("TEST Template.xlsm").Activate
Sheets("SCHEDULE").Select
Cells.Select
ActiveSheet.Paste
Sheets("Main").Activate
wb.Close savechanges:=True 'or false
End Sub
Pl help. Thanks.
Bookmarks