PC Review


Reply
 
 
rjtaylor
Guest
Posts: n/a
 
      4th Sep 2004
I need some help accessing a named range. the range is on a sheet in a
addin I can call it with no problem from a module in the addin however
now need to access it form a module iether in another addin or from th
open workbook How do I do this. thanks
Ro

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      5th Sep 2004
You can refer to that range just like any other range:

Dim myRng As Range
With Workbooks("YourAddinName.xla").Worksheets("YourWorksheetName")
Set myRng = .Range("a1:e" & .Cells(.Rows.Count, "A").End(xlUp).Row)
End With

This example used A1:E(last used row in column A).

Then do pretty much anything you want with it.

"rjtaylor <" wrote:
>
> I need some help accessing a named range. the range is on a sheet in an
> addin I can call it with no problem from a module in the addin however I
> now need to access it form a module iether in another addin or from the
> open workbook How do I do this. thanks
> Rod
>
> ---
> Message posted from http://www.ExcelForum.com/


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
rjtaylor
Guest
Posts: n/a
 
      5th Sep 2004
Do I have to use the set command. Normally i just refer to the rang
name allready set up on the workbook
i.e. Range("CONT_INT").Copy
thanks for the repla

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Sep 2004
That's fine, but I would think you'd need to include the workbook/addin name:

workbooks("myaddin.xla").worksheets("sheet1").range("cont_int").copy

(I like to include all the qualifiers, including the worksheet--even though it's
not always necessary.)

"rjtaylor <" wrote:
>
> Do I have to use the set command. Normally i just refer to the range
> name allready set up on the workbook
> i.e. Range("CONT_INT").Copy
> thanks for the replay
>
> ---
> Message posted from http://www.ExcelForum.com/


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Excel addin versions having LaodBehaviour issue at Addin Dwipayan Das Microsoft Excel Programming 0 17th Apr 2009 05:51 AM
setup project for Excel addin, won't register addin =?Utf-8?B?R2Vycnk=?= Microsoft Excel Programming 0 31st Oct 2007 12:01 AM
Unshimmed Automation Addin and Shimmed COM Addin in same App Domai =?Utf-8?B?QnJhbmRvbg==?= Microsoft Excel Programming 0 27th Jun 2006 11:18 PM
Removing an addin from the addin's list dialog Jim Bassett Microsoft Excel Programming 0 12th Jan 2004 03:11 PM
howtofix excel 2000 says invalid AddIn for valid excel97 AddIn robm Microsoft Excel Discussion 0 24th Sep 2003 06:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 AM.