Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm sorry, wasn't sure how to catagorize this in the subject line.........
I'm trying to copy tabs from a non-active workbook and paste them to an active workbook, however I must be doing this all wrong. Can anyone help me? Thanks. Dim FilePathName As String FilePathName = "Q:\Finance\Forecast\2007\" & TimePeriod & "\Cons Fin\" & strName & ".xls" 'clears/resets objects for finding latest modified file Set oFSO = Nothing Set oFile = Nothing Set oFolder = Nothing ' copy ConsFin Tabs to Tri Interest & Interco Report Dim wb As Workbook Set wb = Workbooks(FilePathName) wb.Sheets(5).Copy ActiveWorkbook.Sheets("TRI - Dec Int Inc") wb.Sheets(7).Copy ActiveWorkbook.Sheets("TRI - Int Abov EBITDA") wb.Close True Set wb = Nothing |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking workbooks; experiencing random "#n/a" error | Excel Discussion (Misc queries) | |||
Multiple "source" workbooks linked to single "destination" workboo | Excel Worksheet Functions | |||
What is Error "Method "Paste" of object "_Worksheet" failed? | Excel Programming | |||
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" | Excel Programming | |||
"Subscript out of range" error for: Workbooks("Test1.xls").Save | Excel Programming |