dparteka
Member
I'm using the code shown below and it works great. Basically it looks at cell AJ2 to determine which file to open. In AJ2 is a number something like 9642A-001, I'm looking to add a +1 to this number resulting in it looking for 9642A-002... is this possible?
Code:
Sub OpenSubItem1()
ChDir _
"H:\Public\PCB-QCR's\SECURITY VIOLATION - CONTACT ADMINISTRATOR IMMEDIATELY"
Workbooks.Open(Filename:= _
"H:\Public\PCB-QCR's\SECURITY VIOLATION - CONTACT ADMINISTRATOR IMMEDIATELY\" & Range("AJ2").Text & " QCR.xlsm"" _
).RunAutoMacros Which:=xlAutoOpen
End Sub