ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy worksheet from xla to xls (https://www.excelbanter.com/excel-programming/351934-copy-worksheet-xla-xls.html)

ndalal

copy worksheet from xla to xls
 
Hello:

I would like to copy an existing worksheet, which is hidden in an
add-in XLA and copy it to an
existing XLS file?

Can someone help?

I have tried many things, but most of them crash...so I'm stucked.

Thanks in advance...
Andy


Dave Peterson

copy worksheet from xla to xls
 
This worked ok for me:

Option Explicit
Sub testme()
Workbooks("personal.xla").Worksheets("sheet1").Cop y _
befo=ActiveWorkbook.Worksheets(1)
End Sub

Sheet1 wasn't a hidden worksheet in the addin.

ndalal wrote:

Hello:

I would like to copy an existing worksheet, which is hidden in an
add-in XLA and copy it to an
existing XLS file?

Can someone help?

I have tried many things, but most of them crash...so I'm stucked.

Thanks in advance...
Andy


--

Dave Peterson


All times are GMT +1. The time now is 07:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com