Named Ranges - Longer than 255 characters

Anton Jansen

New Member
Joined
Jun 16, 2014
Messages
41
I have 20 worksheets, named page 1 to 20,with data. To enable me to export a selected number of pages to a .pdf file, I have given a certain range a name. Example, page1 cells A1:G10 and cells A100:G110 the name is Page1 but ( Page1_A1:G10,A100:G110 when viewed in the name manager) I then hi-light page 2 (together with page 1) and give that a name. This name now Page 2 becomes longer when viewded in the name manager. e.g. Page1_2= Page1_A1:G10,A100:G110;Page_2,A1:G10,A100:G110 I don't know if this is clear but basically I want to export page 1 only by selecting it in the name box, then export maybe page 1 and page2 together by selecting this from the name box and so on. As the number of pages to be selected increase so does the range name in characters. When I got to page 16 this name length was 255 characters and I am stuck with not being able to select pages 1-17 or 1-18 etc. Can this names not be added?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You need to consider using a diffenent method of naming the ranges that will yield a shorter number of characters.
 
Upvote 0
I don't know if this is clear
- It isn't, but I think I understand your problem :)
- Page1_A1:G10,A100:G110 is invalid as both a range name and as a RefersTo value :confused: :confused:

Q1
Are you referring to the Named Range's RefersTo value?

Q2 Is this the correct RefersTo value?
=Page1!$A$1:$G$10,Page1!$A$100:$G$110

Q3 Are using VBA to do the exporting?
- please click on # icon above post window and paste the code between the tags
[ CODE ] paste your code here [ /CODE ]

thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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