Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Copy a named range from an installed add-in while in anothter work

Do it without selecting.

If the code is in the addin:

Thisworkbook.worksheets("sheet9999").range("CEMerg eDataHeader").copy _
destination:=activesheet.range("a1")

or be specific:

Workbooks("myaddin.xla").worksheets("sheet9999") _
.range("CEMergeDataHeader").copy _
destination:=workbooks("someotherworkbook.xls") _
.worksheets("sheet8888").range("a1")



Seth Schwarm wrote:

Excel XP

I want to copy (not paste, copy only) a named range located in an Add-In
(XLA) which is installed while in any other workbook file.

The Add-In I am referencing creates a new menu in Excel at Open of any
workbook. To run the subprocedure to copy the range - I select a command
from the menu which is created at Open as a result of the Add-In I have
mentioned.

I created a new macro to see what the VBA code would look like and this is
what it looks like:

Application.Goto Reference:="CEMergeDataHeader"
Selection.Copy

When I select the command in the menu created at Open - I receive Error 1004.

Please help.

Thank you - Seth


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cells from named range Melissa Excel Discussion (Misc queries) 2 January 19th 07 08:27 PM
Copy cells from named range Melissa Excel Discussion (Misc queries) 0 January 19th 07 08:15 PM
Can't copy named range [email protected] Excel Programming 4 October 3rd 06 08:17 AM
copy named range to powerpoint confused Excel Worksheet Functions 1 October 17th 05 03:23 PM
copy named range gav meredith Excel Programming 4 April 28th 04 07:41 AM


All times are GMT +1. The time now is 04:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"