Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pete
 
Posts: n/a
Default Copy from one worksheet to another

I would like to be able to copy a number of different cells in a specefic row
from one worksheet to another (same document).

The criteria would be similar to the following: if A1 has a value and A2
does not have a value, copy cells A1, A3, A4, A5 from Worksheet 1 into the
next avaliable row in Worksheet 2.

Does that make any sense? Help would be much appreciated.
  #2   Report Post  
tina
 
Posts: n/a
Default Copy from one worksheet to another

Hi Pete
I can think of a number of ways could you sort column so blank cells are at
bottom then copy or if not too many cell select each cell while holding down
control button and copy or write macro like following
Sub Macro1()
Sheets("Sheet2").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
Sheets("Sheet1").Select
For Each CELL In Range("A:A")
If Not CELL = ISBLANK Then
CELL.Copy
Sheets("Sheet2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.Offset(1, 0).Select
Else
End If
Next CELL
End Sub
Hope one of these helps
Tina

"Pete" wrote:

I would like to be able to copy a number of different cells in a specefic row
from one worksheet to another (same document).

The criteria would be similar to the following: if A1 has a value and A2
does not have a value, copy cells A1, A3, A4, A5 from Worksheet 1 into the
next avaliable row in Worksheet 2.

Does that make any sense? Help would be much appreciated.

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
copy page setup from worksheet to another within workbook Fanny Excel Worksheet Functions 2 October 6th 05 02:49 AM
macro to copy and edit then delete a worksheet lschuh Excel Discussion (Misc queries) 13 July 27th 05 09:02 PM
INDIRECT Function impact on Copy Worksheet BG Excel Worksheet Functions 5 July 13th 05 02:29 AM
copy a cell to another worksheet? mo Excel Worksheet Functions 1 February 26th 05 01:31 AM
Copy worksheet with Pivot Table and break link to original workshe setter-lover Excel Worksheet Functions 0 November 18th 04 09:29 PM


All times are GMT +1. The time now is 06:17 PM.

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"