Excel VBA help required

wahmed

Board Regular
Joined
Jun 28, 2010
Messages
66
Hello,

Can anyone explain what is difference between Range property and Cells Property in Excel vba ? same like Worksheets object and sheets object ?

Explanation will be highly appreciated.

best regards

Wahmed
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Range can return a reference to a range of cells or a single cell, where Cells only returns a single cell reference.

But you can combine them:

Range(Cells(1,1), Cells(10,10)).Select

Which would be the same as doing this:

Range("A1:J10").Select

Using them in conjunction can allow you to be very dynamic.

As for Worksheets vs. Sheets, the first will give you Worksheets only, the second will include Chart sheets.

HTH,
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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