LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Mindie
 
Posts: n/a
Default Copy an additional row based on another sheet

I have an excel document that contains 3 sheets. The first Sheet supplies me
with the data to automate the third sheet. Based on what is on the 1st sheet
and if it is a certain code I want to copy the row on the third sheet that
corresponds to that data and copy it to the next row on the third sheet. For
example the first sheet tells me that the code is 01 and based on formulas it
puts the data on the third sheet. But if the code is 01 I want to duplicate
that row on the third sheet and copy it down to the next row. Any ideas. I
tired to do the following but it keeps duplicating the row on the first
sheet.

if range("a5")=25 then
ActiveCell.EntireRow.Copy
ActiveCell.Offset(1).entirerow.Insert
Application.CutCopyMode = False

Thanks Don for that answer it is just not doing what I need it to do.

 
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 sheet 1 data to sheet 2 cells. Tom Doggett Excel Worksheet Functions 1 July 19th 05 11:49 PM
Copy 1 Sheet to Another Dar Excel Worksheet Functions 3 June 6th 05 10:52 PM
Copy Page Setup from Sheet to Sheet? blank Excel Discussion (Misc queries) 3 May 21st 05 10:23 AM
Copy sheet to new workbook Tim Excel Discussion (Misc queries) 5 April 28th 05 02:00 PM
Multiple worksheet queries liam Excel Worksheet Functions 3 February 16th 05 06:52 PM


All times are GMT +1. The time now is 12:04 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"