View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
pascal baro pascal baro is offline
external usenet poster
 
Posts: 23
Default Copy to Next Blank Row of Different Workbook

Hi

.... (the range will start at B4). I think I need
xldown and right?!

I would say that you'd better start from xldown towards xlup. Just because, if you go the other way round, if there is an empty cell in your range, this will be your last row and you just might half way to the last row...


example of xlup

dim lastr as long
lastr = sheet1.cells(rows.count, 2).end(xlup).row

the number 2 means column 2 or column B.

Pascal Baro
http://multiskillz.tekcities.com/