As a warning, I am somewhat new to using VBA, butI have a feeling I am pretty close to figuring this out.
I have a folder with a bunch of different files and I need to open them one at a time to compare them with a master file.
My input box is where I will have the user add the specific file name. A
fter doing this, my string is left with quotations around it so when I put data_wbk1 into the file path, I am getting a run-time error because 'C:Users\......\"CapFcst2014".xlsm' could not be found. If i get rid of the quotes around the file name, it would open right up.
'Open Outdated Workbook
data_wbk1 = InputBox("Enter File Name:", Default:="Paste File Name Here")
Workbooks.Open ("C:\Users\036494\Desktop\CapComp_14&15\ """ & data_wbk1 & """.xlsm")
Thanks
I have a folder with a bunch of different files and I need to open them one at a time to compare them with a master file.
My input box is where I will have the user add the specific file name. A
fter doing this, my string is left with quotations around it so when I put data_wbk1 into the file path, I am getting a run-time error because 'C:Users\......\"CapFcst2014".xlsm' could not be found. If i get rid of the quotes around the file name, it would open right up.
'Open Outdated Workbook
data_wbk1 = InputBox("Enter File Name:", Default:="Paste File Name Here")
Workbooks.Open ("C:\Users\036494\Desktop\CapComp_14&15\ """ & data_wbk1 & """.xlsm")
Thanks