Re: Copying a Worksheet from an Addin

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Er, nope.

I must have been thinking of something else (or not thinking at all!)

Tom Ogilvy wrote:

try this in the immediate window:

workbooks("funcres.xla").Sheets(1).copy

sure you have to make it not an addin?

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote:

Temporarily change the .isaddin to false, copy the ***, and then change
..isaddin back to true.

dim myAddin as workbook
set myaddin = workbooks("something.xla")
myaddin.isaddin = false
myaddin.worksheets(1).copy _
before:=myotherworkbook.worksheets(1)
myaddin.isaddin = true




Trefor wrote:

Is it possible in a macro/vba to copy an entire Work*** from an Addin to a
workbook?
--
Trefor

--

Dave Peterson


--

Dave Peterson
.


Quantcast