SanjayGMusafir
Well-known Member
- Joined
- Sep 7, 2018
- Messages
- 1,513
- Office Version
- 2024
- Platform
- Windows
Hi Experts
Need some urgent help
I'm working on a macro where I want macro to go to a particular date and then perform another function. So I picked coding from my previous macros and compiling a new one...
But the problem is - My earlier Macro Says "EXIT SUB" after it finds a particular date, while I want it to continue working for the next action I want it to take. If I remove command "Exit Sub" then it keeps from from one cell to another that fulfil the condition(s).
So how to modify this macro so that it continues working after selecting a desired cell.
The part of code is as below -
Need some urgent help
I'm working on a macro where I want macro to go to a particular date and then perform another function. So I picked coding from my previous macros and compiling a new one...
But the problem is - My earlier Macro Says "EXIT SUB" after it finds a particular date, while I want it to continue working for the next action I want it to take. If I remove command "Exit Sub" then it keeps from from one cell to another that fulfil the condition(s).
So how to modify this macro so that it continues working after selecting a desired cell.
The part of code is as below -
Rich (BB code):
For Each cell In ActiveSheet.Range("SBISGM[Date]")
If cell.Value >= [Today()] And cell.Value < [Today()+15] Then
cell.Select
ActiveWorkbook.Save
Exit Sub
End If
Next