Can anybody tell me if its possible to run a macro from an if statement as in
=if(weekday(A1)=5,Executemacro,"")
Or else how to program the result of a macro to a cell when a certain condition exists?
I already have a macro that takes data from an active cell with a running number:
Range("B5").Select
Selection.Copy
Range("E26").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Now I need to run this Macro when its friday (example)
Can't find it in the VB help files.
Appreciate a pro's eye on this.
=if(weekday(A1)=5,Executemacro,"")
Or else how to program the result of a macro to a cell when a certain condition exists?
I already have a macro that takes data from an active cell with a running number:
Range("B5").Select
Selection.Copy
Range("E26").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Now I need to run this Macro when its friday (example)
Can't find it in the VB help files.
Appreciate a pro's eye on this.