Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to copy a worksheet from an addin (Toolbox) into an open workbook
(TallyFile). For some reason, the code creates a new file and pastes the sheet all in my "Copy" line. I have also tried to first activate the Tallybase sheet and then copy, but that didn't work either. I have done this a few years ago, but I have forgotten how to. What am I doing wrong? The pertinent section of code is below. Workbooks(TallyFile).Activate Sheets.Add ActiveSheet.Name = TallyName Workbooks("Toolbox.xls").Worksheets("TallyBase").C opy ' Cells.Select ' Selection.Copy Workbooks(TallyFile).Activate ActiveSheet.Paste |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying A Worksheet From Each Open Workbook to an new Workbook | Excel Worksheet Functions | |||
Copying Worksheet to Another Open Workbook | Excel Programming | |||
Copying Worksheet to Another Open Workbook | Excel Programming | |||
Copying Worksheet to Another Open Workbook | Excel Programming | |||
Copying a Worksheet from an AddIn into an empty Workbook | Excel Programming |