Get file name to open from cell

K

Kashyap

I have the below code where file name is 'Disposition'..

I need to make macro to pick file name from Sheets("Set").Range("B2").Value


Workbooks.Open ThisWorkbook.Path & "\Misc\Disposition_of_Calls.xls", True

ActiveWorkbook.Sheets("Calls_Report").Range("F2").Value =
ThisWorkbook.Sheets("mySheet").Range("L7").Value
 
B

Bernie Deitrick

Kashyap,

Workbooks.Open ThisWorkbook.Path & "\Misc\" & Sheets("Set").Range("B2").Value & ".xls", True

Or

Workbooks.Open ThisWorkbook.Path & "\Misc\" & Sheets("Set").Range("B2").Value, True

Depending on what the actual value is in Sheets("Set").Range("B2")

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top