A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Use defined names in VBA?



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2004, 04:26 AM
JRocket02
external usenet poster
 
Posts: n/a
Default Use defined names in VBA?

Hi all

Any way to have Excel generate links or dimension variables so that VBA can
use the defined names on the spreadsheet (menu: insert name define)? Or
is it best to just Dim all the same variable names in code to match the
defined names? Thanks!


  #2  
Old August 3rd, 2004, 06:31 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Use defined names in VBA?

Hi
try something like
dim rng as range
set rng=range("your_defined_name")
msgbox rng.address

--
Regards
Frank Kabel
Frankfurt, Germany


JRocket02 wrote:
Hi all

Any way to have Excel generate links or dimension variables so that
VBA can use the defined names on the spreadsheet (menu: insert name
define)? Or is it best to just Dim all the same variable names in

code to match the defined names? Thanks!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defined names and SUMPRODUCT Steve Worksheet Functions 6 July 21st, 2004 07:42 PM
Defined Names in an If Statement SharonSmith Worksheet Functions 3 March 25th, 2004 04:04 PM


All times are GMT +1. The time now is 11:57 PM.


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