ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   range and cell (https://www.excelbanter.com/excel-programming/316057-range-cell.html)

tango

range and cell
 
dear all/hth,
what is the difference between range and cell? range is for 1 or more
than 1 cell whereas cell is just for 1 cell? pls can hv yr advice.

hth, thanks alot.

rgds





1) Set tableB = Worksheets(mm).Range("a1:g1000")

2) Set tableB = Worksheets(mm).Cells

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tango" wrote in message
om...
*incorrect
mm = ("Sheet" & 3)
Set tableB = mm.Range("a1:g1000")

1)i got runtime error 424 object required. why? because the sheet
number is enter by user in the inputbox and i do not want to hardcode
it. pls help
2) instead of putting ("a1:g1000") what should i put for ranging whole
worksheet?


*correct
set tableB = sheet3.range("a1:g1000")



All times are GMT +1. The time now is 11:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com