Hi there,
The code below looks for the text 'Journey Start Event' in column E and if it cannot find it, it exits the routine.
My questions is how do I change the if then statement to save the file to a folder before exiting the routine.
This is folder I want to save it to
thank you
The code below looks for the text 'Journey Start Event' in column E and if it cannot find it, it exits the routine.
Code:
Dim myCell1 As Range, _
found As Range
LastRow2 = Range("E" & Rows.Count).End(xlUp).Row
Set myCell1 = Range("E" & LastRow2)
Set found = Columns("E").Find(What:="Journey Start Event", LookIn:=xlValues, LookAt:=xlPart)
If found Is Nothing Then Exit Sub
My questions is how do I change the if then statement to save the file to a folder before exiting the routine.
This is folder I want to save it to
Code:
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs FileName:="C:\Bad data\" & ActiveWorkbook.Name
thank you