![]() |
Run Part of a Code If Q
I have a piece of Code (part of several within the same module) that
mails out a spreadsheet, but I only want it to action if the value in SheetA1 = Monday (A1 will actually be =Now()). If the Value in A1 is not = Monday I just want to skip over the code and execute the remaing code. How would I do that? Thanks |
Run Part of a Code If Q
If Weekday(Sheets("Sheet1").Range("A1")) = vbMonday Then
'do something End If Hth, Merjet |
Run Part of a Code If Q
On Feb 14, 1:32 pm, "merjet" wrote:
If Weekday(Sheets("Sheet1").Range("A1")) = vbMonday Then 'do something End If Hth, Merjet Thanks Merjet |
All times are GMT +1. The time now is 05:44 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com