Brackets & Me.Name :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Brackets & Me.Name
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

earlyd
Board Master


Joined: 11 Dec 2002
Posts: 955

Flag: Usa

Status: Offline

 Reply with quote  

Brackets & Me.Name

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?

Post Fri Sep 19, 2003 5:29 pm 
 View user's profile Send private message

Ivan F Moala
MrExcel MVP


Joined: 11 Feb 2002
Posts: 3210
Location: Auckland, New Zealand
Flag: Newzealand

Status: Online

 Reply with quote  

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.
_________________
Kind Regards,
Ivan F Moala From the City of Sails

Post Fri Sep 19, 2003 5:54 pm 
 View user's profile Send private message Send e-mail Visit poster's website

earlyd
Board Master


Joined: 11 Dec 2002
Posts: 955

Flag: Usa

Status: Offline

 Reply with quote  

Re: Brackets & Me.Name

I think its GRRRREAT! icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif

Post Fri Sep 19, 2003 5:59 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.