View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Help Identifying code statement

lastrow = Worksheets(1).Range("B65536").End(xlUp).Row

Identifies the last row in column B of the first worksheet that has a value
or formula.

rw = Worksheets(1).Range("B65536").End(xlUp).Row + 2


Identifies the last row in column B of the first worksheet that has a value
or formula and adds 2 to it.


"Ayo" wrote:

Can anyone tell me what these codes do? Or what they mean?
Thanks
lastrow = Worksheets(1).Range("B65536").End(xlUp).Row
rw = Worksheets(1).Range("B65536").End(xlUp).Row + 2