Hi guy i am creating vba project where i need to switch from one workbook to another where i need dynamic active workbook name
so i am trying to use this code, here i am getting error "script out of range"
Dim wb
wb = ActiveWorkbook.FullName
wb = Split(wb, "\")(UBound(Split(wb, "\")))
Workbooks("wb").Activate
but when i am changing dynamic name of active workbook to static.. this code works...
Dim wb
Workbooks("project1.xlsm").Activate
please help guys.. cause i need dynamic name of active workbook...