Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am trying to automate the copying of a sheet into another workbook that I have to select and I am not able to get my code to work. This is what I have so far: Sheets("Sheet4").Select newFN = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Please select a file") If newFN = False Then MsgBox "Stopping because you did not select a file" Exit Sub Else Workbooks.Open Filename:=newFN End If Windows(newFN).Select Sheets("Sheet4").Move Befo=Workbooks("NewFN").Sheets(1) As you can see, I am selecting sheet 4. Then I open the workbook into which I would like to copy sheet 4. I know how to automate moving a sheet into a static workbook, but I want to be able to change the workbook as needed. Thanks for your help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet cells into differnt workbook/sheet, How? | Excel Discussion (Misc queries) | |||
Copy Sheet from One workbook to another EXISTING workbook | Excel Programming | |||
automatic copy and paste from sheet to sheet in a workbook | Excel Programming | |||
Copy sheet from one workbook to another workbook problem | Excel Programming |