I have a script that saves a workbook to a certain filename (based on cell values.) I need to reopen the workbook (with the new file name) and refer to itself while running a macro. This is what I currently have and has failed:
Qty1 = Range("F6".FormulaR1C1
P1 = Range("D6".FormulaR1C1
customer_code = Range("C6"
fname = customer_code + " " + P1 + " " + Qty1
Workbooks(fname).Activate
It is giving me an error. Any ideas?
Qty1 = Range("F6".FormulaR1C1
P1 = Range("D6".FormulaR1C1
customer_code = Range("C6"
fname = customer_code + " " + P1 + " " + Qty1
Workbooks(fname).Activate
It is giving me an error. Any ideas?