Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Newbie question.. what does [somedata] represent? Constants??

I am relatively new to excel/vba programming..I am tackling my 3rd or so
project.

I've come across some logic in a vba module:

lRows = [LocRows] <-----Whats that?
vStore = [LocNum] <-----What's that??
dRow = [DselRow] <------What's that???


I get the feeling these refers to named constants? But I am looking for
somebody to confirm and tell me how to define one.

THanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Newbie question.. what does [somedata] represent? Constants??

Alex,

LocRows is a workbook name here, referring to a range on the worksheet, or a
value workbook name (such as where the RefersTo value is not a range, but is
a value).

In the former case, it is transferred to an array, and the latter is
transferred to a variable of that particular type.

[] is a (nasty IMO) shortcut way of referring to a range in VBA, such as
[A1] and can use names as can normal range definitions.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Alex Wolff" wrote in message
...
I am relatively new to excel/vba programming..I am tackling my 3rd or so
project.

I've come across some logic in a vba module:

lRows = [LocRows] <-----Whats that?
vStore = [LocNum] <-----What's that??
dRow = [DselRow] <------What's that???


I get the feeling these refers to named constants? But I am looking for
somebody to confirm and tell me how to define one.

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
Newbie question golfinray Excel Discussion (Misc queries) 0 April 23rd 09 09:28 PM
Newbie question Ekaterina Charts and Charting in Excel 2 January 30th 07 06:59 PM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Newbie Question .. what's this stevem[_6_] Excel Programming 2 April 2nd 04 05:06 AM


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

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"