I have used this VBA code to try automate my rostering process.
The roster template starts with the drivers being a 1 on their rostered day off work, when the roster is made the get assigned a route.
Sub Find_Replace_SHAYNE_NCO()
Range("D45:AS45").Replace What:="1", Replacement:="NCO"
End Sub
This code makes every 1 on Shaynes roster turn into a NCO.
How do I incorporate a lookup function to search for "SHAYNE" to determine what row this needs code needs to be applied to?
Future proofing for when I insert new rows and don't want to reexamine every macro.
Thanks
The roster template starts with the drivers being a 1 on their rostered day off work, when the roster is made the get assigned a route.
Sub Find_Replace_SHAYNE_NCO()
Range("D45:AS45").Replace What:="1", Replacement:="NCO"
End Sub
This code makes every 1 on Shaynes roster turn into a NCO.
How do I incorporate a lookup function to search for "SHAYNE" to determine what row this needs code needs to be applied to?
Future proofing for when I insert new rows and don't want to reexamine every macro.
Thanks