Opening a Workbook with file path reference in a cell

NextWorldAngel

New Member
Joined
Oct 19, 2006
Messages
31
I am Trying to Open a Workbook with the file name referenced in a cell. Below is what I am using but it is not working can anyone tell me what I need to change?

Code:
 Workbooks.Open Filename:=Sheet("Support Info").Range("F31")
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Code:
Workbooks.Open(Sheet("Support Info").Range("F31"))

or

Code:
Workbooks.Open([Support Info!F31])
 
Upvote 0
I am Trying to Open a Workbook with the file name referenced in a cell. Below is what I am using but it is not working can anyone tell me what I need to change?

Code:
 Workbooks.Open Filename:=Sheet("Support Info").Range("F31")


Question does the cell also contain the file extension of .xls?

Would it be useful to show the content of the cell in your thread to help get a solution.
 
Upvote 0
Wit a simple CSV file and the path written in cell A1, this works perfectly for me:

Code:
Sub tst()
   Workbooks.Open (Sheets("Sheet1").Range("A1"))
End Sub

Note that this is completely analogous to what I provided you earlier.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top