Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is the basic code which you will need to adapt as required :-
Code ------------------- Sub test() Dim NextMonth As Integer Dim FromRow As Long Dim ToRow As Long '-------------------- NextMonth = Month(Date) + 1 ToRow = 1 '-- For FromRow = 1 To 1000 If Month(ActiveSheet.Cells(FromRow, 1).Value) = NextMonth Then Worksheets("Sheet1").Cells(ToRow, 1).Value = _ ActiveSheet.Cells(FromRow, 1).Value ToRow = ToRow + 1 End If Next MsgBox ("Done.") End Sub ------------------- -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macros warning always shows up, even if all macros removed | Excel Discussion (Misc queries) | |||
Macro Size Limit / open macros with macros? | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming | |||
Suppress the Disable Macros / Enable Macros Dialog | Excel Programming | |||
List the Macros that can be executed from Tools-Macros | Excel Programming |