Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which is quicker

Status
Not open for further replies.

RamziSaab

MIS
May 7, 2003
522
GB
In VBA excel which is quicker range("name").offset(x,y)

or

Cells(x,y)....

or

another method...

anyhelp would be appreciated.

 


Hi,

Check out...

How Can I Make My Code Run Faster? faq707-4105

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Thanks, i understand those methods but i am wonderinng if there is a difference between range("Name").offset(x,y) (ie.it is not selection the cell) and just using the cell(x,y) method>
 

The With statement allows you to perform a series of statements on a specified object without requalifying the name of the object. Running CompareMethods without With…End With, adds about 10% to the run time.
Each time you evaluate an object, it takes time.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top