Referencing Named Ranges from Add-Ins

Darren Arnold

New Member
Joined
Jul 20, 2011
Messages
10
I've made an Add-In to hold all my formulas for, say brick coursing.

I then made a name range in the Add-In to contain the names and dimensions of all brick types.

So far so good.

I make a new spreadsheet, enable the add-in, the functions work, except...

I click on a cell, enable data validation, and try to reference the named range in the add-in... I can't.

So in a nutshell:

If I make a named range in an add-in, how do I reference it in a sheet that uses it?

How to I make =NamedRangeFromAddIn work?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Here's how to find the max value in such a range:

=MAX([addin_name.xls]sheetname!rangename)
 
Upvote 0
But if the sheet is an add-in and not an actual sheet will it still work?

I'm not distributing the sheet, only the add-in
 
Upvote 0
Did you try it?

If you know the filename, sheet name, and range name, it will work.
 
Upvote 0
I did try it but it doesn't want to call a named range from the Add-In.

Every time I tried to reference the range it wouldn't accept [Filename]SheetName!NamedRange.xlam

Nor would the Data Validation accept a named range from another sheet even when it wasn't an add-in

It can call from sheets, but won't recongnise named ranges in the add-ins
 
Upvote 0
".xlam" is part of the file name:

[Filename.xlam]SheetName!NamedRange

But Data Validation only accepts a range name that's defined in the workbook that contains the data validation. You could probably define a name in the workbook that refers to the name in the add-in, and use that for the DV list.
 
Upvote 0
Thanks, Jon

It didn't work for me at work, but it did work at home so I think I must have some setting or location screwed up somewhere.

Thanks for reiterating the answer because I nearly gave up on it.

The other part was the Data Validation would only accept a local name so all I did was make a hand-hold local name.

Again, thanks.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top