Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am saving a spreadsheet with a new name. When I run the macro in the new
spreadsheet, it automatically opens up the old spreadsheet as well as doing the macro. It doesn't transfer me to the new spreadsheet, it just opens it up. This is driving me crazy! Here is my VB code, if it helps. Thanks to anyone who can help me. Sub PRINT3SAVE() 'Sub date1() ' ' date1 Macro ' Saves date created ' Range("U45").Select Selection.Copy Range("W4").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("U46").Select Selection.Copy Range("W39").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False ' PRINT3SAVE Macro ' Prints 3 copies and saves file ' ActiveWindow.SelectedSheets.PrintOut Copies:=3 Application.Dialogs(xlDialogSaveAs).Show End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to copy and append spreadsheet changes to new spreadsheet | Excel Discussion (Misc queries) | |||
Code to Copy Data from One Spreadsheet To Another | Excel Discussion (Misc queries) | |||
How do I copy spreadsheet data as shown to another spreadsheet? | Excel Discussion (Misc queries) | |||
In Excel I want to copy text from spreadsheet to spreadsheet | Excel Worksheet Functions | |||
Copy code to a new spreadsheet | Excel Discussion (Misc queries) |