Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to copy and past selected rows only...

Hi there, I am very new to this so bear with me

I have 4 excel 97 spreadsheets that I am looking to have the following work in

In Col A each row is a formula that says basically if Col D"",Today(),"" To add todays Dat
In Col B each row is a formula that says basicaly if Col D"",B1+1,"" (B1 being the row above) To add a consecutive Invoice number

Each sheet is updated by a different person and will have a different number of rows on any given day
What I need to be able to do is select the number of rows that have data entered into them and Copy+Paste Values of Col A & B. The problem that I am having is that excel sees the formula in the blank cell as data in the cell and selects it as part of the End +down function. I was thinking could right an If...Then macro to loop through and check Col D, if it finds data, then copy and paste values of Cols A & B, but like I said I am very new to this and don't really know how to write new macros. I have been slightly successful in editing macros that I have recorded, but this is a bit beyond me

If I need to be more clear, please let me know. Thanks for the input.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to copy and past selected rows only...

OOps, I almost forgot, I also need it to run at 9:00pm every night

----- Jules wrote: ----

Hi there, I am very new to this so bear with me

I have 4 excel 97 spreadsheets that I am looking to have the following work in

In Col A each row is a formula that says basically if Col D"",Today(),"" To add todays Dat
In Col B each row is a formula that says basicaly if Col D"",B1+1,"" (B1 being the row above) To add a consecutive Invoice number

Each sheet is updated by a different person and will have a different number of rows on any given day
What I need to be able to do is select the number of rows that have data entered into them and Copy+Paste Values of Col A & B. The problem that I am having is that excel sees the formula in the blank cell as data in the cell and selects it as part of the End +down function. I was thinking could right an If...Then macro to loop through and check Col D, if it finds data, then copy and paste values of Cols A & B, but like I said I am very new to this and don't really know how to write new macros. I have been slightly successful in editing macros that I have recorded, but this is a bit beyond me

If I need to be more clear, please let me know. Thanks for the input.
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 selected rows to second worksheet (NOT Cut + Paste) gyrra New Users to Excel 2 June 4th 10 09:05 PM
Macro to Copy/Paste Data into one wksht, skipp one row before past Shoney Excel Discussion (Misc queries) 1 February 22nd 08 01:28 AM
Macro Help - Copy Selected Row Teddy-B Excel Discussion (Misc queries) 3 October 18th 07 07:55 PM
Copy a selected number of rows Eric S. Excel Discussion (Misc queries) 4 June 25th 07 08:23 AM
Macro: Insert, copy and past data from sheet Metaldream7 Excel Discussion (Misc queries) 0 November 8th 06 09:31 PM


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