Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defining Names Programmatically

I would like to add a Name to a worksheet
programmatically. I don't want to have to add the name
manually and a macro will not work unless it can be run
without having to open the worksheet and run it with mouse
clicks.

I need to define the same Name or names to changing ranges
on the sheet each time the sheet arrives in a folder. I
can run a script or .exe on the xls file based on an
existence criteria.


Can this be done?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Defining Names Programmatically

Dave,

Do you mean, can you add a name to a closed workbook? If so, AFAIK, the
answer is no, you would have to open it, add the name, and tghen close it.
Also, how would you know it has arrived in the folder?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Dave Yutzler" wrote in message
...
I would like to add a Name to a worksheet
programmatically. I don't want to have to add the name
manually and a macro will not work unless it can be run
without having to open the worksheet and run it with mouse
clicks.

I need to define the same Name or names to changing ranges
on the sheet each time the sheet arrives in a folder. I
can run a script or .exe on the xls file based on an
existence criteria.


Can this be done?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defining Names Programmatically

Bob,

I would be glad to open the exel doc in a vbscript. I just don't want
to have to add it through the exel ui. Is there a way to do with
vbscript?

Thanks for your ideas.

Dave


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
defining names in a macro guidop12 Excel Discussion (Misc queries) 6 August 28th 08 11:56 PM
Help with defining names [email protected] Excel Worksheet Functions 3 February 14th 08 08:34 AM
Defining Names in Excel RadioTraffic Excel Worksheet Functions 3 January 10th 07 02:41 AM
Automating defining names Sid DeLuca Excel Programming 1 December 4th 03 07:29 PM
Defining Names russell \(skmr3\) Excel Programming 1 July 25th 03 02:24 AM


All times are GMT +1. The time now is 03:59 PM.

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

About Us

"It's about Microsoft Excel"