Brackets & Me.Name

earlyd

Well-known Member
Joined
Dec 10, 2002
Messages
1,199
I have been using Range("MyRangeName").value for some time and now I saw a solution offered which instead just uses [MyRangeName] and leaves off Range and Value. How long has this been available? I could have saved considerable time. Thanks to HalfAce on Mechanic's problem. However, I couldn't get Me.Name to work. Does this work for others?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
This has been avail? for a while now. The syntax is a shortcut
way of referencing for objects. So using [] instead of parenthesis
means you don't need to type the quotes and you don't
need to state what kind of object you're referring to.
eg Range("A1") >>>> [A1]. You can leave off Value as it will use the defgault property.

Using square brackets eg "[A1:C5]") is3
identical to calling the Evaluate method with using a string
argument.
It may save time and simplify code and in some cases simple means faster, but it may also mean more obscure.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top