Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA code to paste data based on condition

I'm new to VBA programming and would appreciate some help with a macro.

There is a database table that can be refreshed throughout the month that
simply overrides the cell value from the same refresh. So the values update
every time you refresh in the same cell until the next month begins (Date +
Year are the column headings). What I need to do is break each month down
into weeks like this (1-7 = Week 1, and so on where Week 5 is any day after
the 28th of the month).

I need a macro where the morning a new week starts (Day 8), I can copy/paste
values the entire column in the data table at that moment into another
column labeled "Week 1". This process is repeated weekly, with Week 2 =
Database Table Values - Week 1 in another column, and so on.

Can anyone help me out with this? Was I clear enough with my information?

Thanks!
Wayne

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
macro to copy and paste based on a condition kathryn462 Excel Discussion (Misc queries) 5 October 14th 08 12:59 AM
Copy and Paste based on Condition EJ Excel Discussion (Misc queries) 1 June 27th 07 11:17 PM
Condition based copy/paste of range [email protected] Excel Programming 1 April 28th 07 11:30 PM
Condition based copy/paste of range [email protected] Excel Programming 0 April 27th 07 05:48 AM
Macro to automatically paste a pic based on a certain condition balayon Excel Programming 3 May 4th 06 03:11 PM


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