LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Multiple Worksheets, Date

LOFE,
I mean that each worksheet has a varying number of rows of information. The
information starts at A5 on each sheet. Where would I place this code to
attempt to run it? I expected to place it in ThisWorkbook, but nothing
happened.

Thanks,
Mike

"LOFE" wrote:

Coupe of assumptions in the following code. You're starting in A1 and there
is data in each cell in Column A. I'm a bit unsure what you mean by Column H
having varying lengths - do you mean format? Anyways, maybe this will help

Do Until Activecell = ""
DataSheet = ActiveSheet.Name
MyDate = Format(Activecell(1,8),"dd/mm/yyyy")
MyToday = Format(Now(),"dd/mm/yyyy")
MyFuture = Format(MyToday + 7,"dd/mm/yyyy")
If MyDate < MyFuture AND MyDate MyToday Then
Activecell.EntireRow.Copy
Sheets("Next Week").Select 'Or whatever sheet it is that you're using
ActiveSheet.Paste
Sheets(DataSheet).Select
Application.CutCopyMode = False
End If
Activecell(2,1).Select
Loop




"MSchmidty2" wrote:

Hi,
I'm looking for some help with VBA to test dates in the H column of multiple
worksheets (H column has varying lengths). If the date is within the next
week, I would like to copy the row to a seperate worksheet. In essence, I
would like to create a week lookahead report. I'm able to work this out with
functions etc, but would like to learn how to do it VBA-style. Thanks!

 
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
Creating new worksheets and appending data from multiple worksheets. Dow Excel Programming 5 March 11th 08 07:04 PM
date from multiple worksheets jdvanhemert Excel Worksheet Functions 3 October 16th 07 03:31 AM
Lookup date on multiple worksheets, total amts for adjacent colmn robnsd Excel Discussion (Misc queries) 0 February 15th 07 11:32 PM
MIN date from multiple different worksheets in a workbook ricky Excel Worksheet Functions 4 February 6th 07 09:37 AM
Transferring date from multiple worksheets to a "totals" worksheet. tonyDeBrasco Excel Discussion (Misc queries) 3 July 22nd 05 05:43 PM


All times are GMT +1. The time now is 11:58 PM.

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

About Us

"It's about Microsoft Excel"