Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am able to copy and paste the worksheet to new worksheet in new workbook. But i have one problem. The worksheet which I am copying is having VBA Code behind it. When i do copy paste , VBA code also copies to new workseet. I do not want the VBA code to be copied.. Any solution... My Existing Code Workbooks("Book1").Sheets("Sheet1").Copy Befo=Workbooks("Book2").Sheets(1) ' This is for remove the formulas. ActiveSheet.UsedRange = ActiveSheet.UsedRange.Value Sudarshan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
take a look at http://www.cpearson.com/excel/vbe.htm to delete the code -- Regards Frank Kabel Frankfurt, Germany Sudarshan wrote: Hi, I am able to copy and paste the worksheet to new worksheet in new workbook. But i have one problem. The worksheet which I am copying is having VBA Code behind it. When i do copy paste , VBA code also copies to new workseet. I do not want the VBA code to be copied.. Any solution... My Existing Code Workbooks("Book1").Sheets("Sheet1").Copy Befo=Workbooks("Book2").Sheets(1) ' This is for remove the formulas. ActiveSheet.UsedRange = ActiveSheet.UsedRange.Value Sudarshan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy workbook to 2nd workbook paste is greyed out | Excel Worksheet Functions | |||
Copy and Paste Chart as Picture into another workbook or worksheet | Charts and Charting in Excel | |||
copy and paste using code from workbook to workbook | Excel Discussion (Misc queries) | |||
I cannot paste from one workbook to another. Copy works, paste do. | Excel Discussion (Misc queries) | |||
Copy worksheet and paste it in New workbook, all data except Formulas | Excel Programming |