Global range name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to set a global range name that can used across all of my
spreadsheets? I was thinking I could set a range in an add-in, but once my
file is converted to an add-in, I wasn't sure how to access the worksheet if
I needed to make changes. Basically, what I am looking to do is to have a
range of holidays that I can then reference whenever I am working on Excel.
An example function would be =workday(today(),30,Holidays), where holidays is
the golbal range name. While I can probably set the holidays now going
forward for a while, I would like to be able to view and change them fairly
easily if necessary.
 
msa165 said:
Is there a way to set a global range name that can used across all of my
spreadsheets? I was thinking I could set a range in an add-in, but once my
file is converted to an add-in, I wasn't sure how to access the worksheet if
I needed to make changes. Basically, what I am looking to do is to have a
range of holidays that I can then reference whenever I am working on Excel.
An example function would be =workday(today(),30,Holidays), where holidays is
the golbal range name. While I can probably set the holidays now going
forward for a while, I would like to be able to view and change them fairly
easily if necessary.
 
msa165 said:
Is there a way to set a global range name that can used across all of my
spreadsheets? I was thinking I could set a range in an add-in, but once my
file is converted to an add-in, I wasn't sure how to access the worksheet if
I needed to make changes. Basically, what I am looking to do is to have a
range of holidays that I can then reference whenever I am working on Excel.
An example function would be =workday(today(),30,Holidays), where holidays is
the golbal range name. While I can probably set the holidays now going
forward for a while, I would like to be able to view and change them fairly
easily if necessary.

Wouldn't it be better to have the holidays stored in your add-in?

7fredrik
 
I do something similar but I read my Holiday days into an array out of an
Access Database. The database is easy to change and I have seperate files for
Canada and US holidays. It works pretty well. The database just needs to be
in a common area. If you are Ok with Addins I assume that and ADO DB
recordset is not over your head... Give it a try... I would post mine but the
database has a bunch of other things in it that makes the code appear pretty
convoluted...

HTH
 
Thanks for the responses. I don't know if the Access solution will work
because not all of the end users have Access on their system.

I would like to create the range in my add-in if possible, but I didn't know
how to define it using code. Is there a way that I can specify a range just
in code without having to enter the items on a sheet?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top