LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default CopyIntoFirstEmptyRow

This is a short and easy way of doing it...

With Worksheets("B")
k=2
While .cells(k,1)<""
k=k+1
Wend
End With

Variable k will have the first empty row number every time
this macro is run.

Regards


-----Original Message-----
I hope someone can help.
I need to write a macro to do the following:
I have worksheet A, which I want to copy the values of

Cells B1:B20
The macro will search worksheet B for the first empty

row starting with
row A2.
Then copy worksheet A, cells b1:b20 into worksheet B

HORIZONTALLY in cells
A2:T2
The next times the macro is activated, it will again

copy cells b1:b20 from worksheet a,
find the next empty row in worksheet B and then copy.
thanks

Mike



.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"