Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
joe joe is offline
external usenet poster
 
Posts: 62
Default Check rows and paste

Hi,

Can VBA check that the last row is the empty without
data from sheet1 of "test.xls" first,follow by copy the
data from sheet1 from "test.xls"and paste it to new
sheet1 of new "book1.xls". If the last row is blank,
append another rows of data from another sheet eg sheet2
from "test1.xls"
eg

In test1.xls, sheet1

Row 1 Date Name Contact
Row 2 20/04 John 2346712
Row3 20/06 Jane 1234678
Row 4 20/06 Kelly 2345678

imagine i delete row3 "Kelly" above, I hane left only

Row 1 Date Name Contact
Row 2 20/04 John 2346712
Row 3 20/06 Kelly 2345678

Copy the above data from sheet1 of "test1.xls" and paste
into sheet1 of "Book1.xls".
I will have data as in sheet1 of "Book1.xls" as below:

Row 1 Date Name Contact
Row 2 20/04 John 2346712
Row 3 20/06 Kelly 2345678

This will append the data from row 0 from sheet2
of "test1.xls" as shown below:

sheet2 of "test1.xls" have

Row 0 Date Name Contact
Row 1 20/04 Jerry 2346712
Row 2 20/06 susan 2345678

therefore, I will have overal data in sheet1
of :Book1.xls" as shown below:

Row 1 Date Name Contact
Row 2 20/04 John 2346712
Row 3 20/06 Kelly 2345678

Row 0 Date Name Contact
Row 1 20/04 Jerry 2346712
Row 2 20/06 susan 2345678.

please advise.

regards,
Joe


Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
check box, copy / paste or insert / delete row Carla Excel Worksheet Functions 2 June 4th 08 03:01 PM
Copy and Paste Check Boxes Dolphinv4 Excel Discussion (Misc queries) 0 May 29th 07 07:40 AM
if formula to check text and paste link qook Excel Discussion (Misc queries) 2 April 13th 07 11:12 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
flexible paste rows function that inserts the right number of rows marika1981 Excel Discussion (Misc queries) 1 February 18th 05 02:40 AM


All times are GMT +1. The time now is 03:12 AM.

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

About Us

"It's about Microsoft Excel"