Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default [variable] definition

HI,
I am new to Excel - VBA and i guess this would be a very simple doubt.
Can you please tell me what a variable surronded by square brackets mean..
For example [opp_row_count]. Does it refer to some inbuilt variable.
Please advice.

Thanks & Regards,
Veena.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default [variable] definition

In online help this would normally refer to the argument being optional.
- if this is what you were refering to.

Best regards


Deepak


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default [variable] definition

Veena,
It could that the variable name is actually invalid for VB/VBA, but this
force it's acceptance.
Not sure excatly what you are referring to, but I use in class
module/collection to allow an enumeration with For Each:
e.g. Set NewEnum = mCol.[_NewEnum]
where the underscore would normally be invalid as the first character.

NickHK

"Veena" wrote in message
om...
HI,
I am new to Excel - VBA and i guess this would be a very simple doubt.
Can you please tell me what a variable surronded by square brackets

mean..
For example [opp_row_count]. Does it refer to some inbuilt variable.
Please advice.

Thanks & Regards,
Veena.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default [variable] definition

It's a shortcut to the Evaluate method. Search XL VBA help for 'square
bracket' (w/o the quotes). The very first suggested topic is 'Evaluate
Method' That explains the use of square brackets some more.
Personally, I find the technique very limiting and use it very, very
rarely.


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
HI,
I am new to Excel - VBA and i guess this would be a very simple doubt.
Can you please tell me what a variable surronded by square brackets mean..
For example [opp_row_count]. Does it refer to some inbuilt variable.
Please advice.

Thanks & Regards,
Veena.

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
VBA variable definition help needed. jenn k New Users to Excel 4 September 5th 08 08:55 PM
$ definition nicolebelle Excel Worksheet Functions 1 November 18th 05 01:44 PM
The definition of.... Ursula Excel Worksheet Functions 2 February 16th 05 04:14 PM
variable range definition jmp Excel Programming 2 May 6th 04 11:06 PM
Problem Using an Object Variable in a Class Definition Boxman Excel Programming 2 August 28th 03 03:05 AM


All times are GMT +1. The time now is 06:40 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"