Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to use the following code to select a worksheet from one opened
file to another(filename 'fName' is passed to the sub function): FileList = Application _ .GetOpenFilename( _ FilterIndex:=1, _ Title:="Open File That Contains Anderson List") Workbooks.Open Filename:=FileList Sheets("Anderson List").Select ActiveSheet.Copy After:=Workbooks(fName).Sheets End Sub But I'm getting a subscript out of range error. Any ideas why? -- Thanks! Max |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Retain Format When Coping Visible Cells Only to New Worksheet | Excel Programming | |||
Looking to copy a worksheet with all formats and formulas without coping inputed data | Excel Discussion (Misc queries) | |||
Macro for coping cells from one worksheet to another | Excel Programming | |||
coping | New Users to Excel | |||
Error 50290: Error writing to Worksheet while using an ActiveX Control | Excel Programming |