Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default vba equivalents of set.name and define.name

I'm converting an old xlm file to vba. What are the vba
equivalents of set.name and define.name? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default vba equivalents of set.name and define.name

These refer to Defined Names within Excel, which in the product is created
via menu

InsertNameDefine ...

and provide the name, and the RefersTo value.

In VBA that can be done by building the name, and then assigning a value to
the range

ActiveWorkbook.Names.Add Name:="Bob", RefersTo:=Range("A1")
Range("Bob").Value = 123

A simpler way of defing the name is from a range

Range("A1").Name = "Bob"

and set the value as before

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"John Smith" wrote in message
...
I'm converting an old xlm file to vba. What are the vba
equivalents of set.name and define.name? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default vba equivalents of set.name and define.name

This help file has a section on VB equivalents of XL4 functions.

http://www.microsoft.com/downloads/i...splayLang%3den

--
Jim
"John Smith" wrote in message
...
I'm converting an old xlm file to vba. What are the vba
equivalents of set.name and define.name? Thanks.



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
German Excel Menu equivalents John Excel Discussion (Misc queries) 3 February 18th 08 04:10 PM
Are there equivalents of wildcard characters to use in hyperlink f caramon2000 Excel Worksheet Functions 2 November 16th 06 10:34 PM
International Equivalents kt Excel Worksheet Functions 0 August 24th 05 09:21 PM
Looking for Lotus 123 menu equivalents Dave[_50_] Excel Programming 12 November 17th 04 05:36 PM
Lotus Macro Commands to VBA equivalents Raul[_4_] Excel Programming 2 April 20th 04 08:48 PM


All times are GMT +1. The time now is 03:23 AM.

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

About Us

"It's about Microsoft Excel"