VBA: Opening an external workbook based on a concatenated link (string) residing in a cell.

Hawk11ns

Board Regular
Joined
Jul 21, 2015
Messages
61
Office Version
  1. 365
Platform
  1. Windows
I have a workbook that's updated using data from several external workbooks. To create the links to these external workbooks I am using the concatenate function to concatenate both cell values (strings) and "text_strings". My macro is able to open these external workbooks, copy/past the necessary data, and close the external workbooks... BUT only when the links are hard coded. So I either need to have the VBA code perform the concatenation for each string OR have the VBA code recognize a concatenation formula result as a link to open the external workbooks. Suggestions?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
What is an example of something you cannot open? I have no issues opening something like this
MrExcel.xlsm
A
1C:\Temp\
2Slitting Schedule - 2 - 202101151
3C:\Temp\Slitting Schedule - 2 - 202101151.csv
Sheet2
Cell Formulas
RangeFormula
A3A3=A1&A2&".csv"

with this
VBA Code:
Workbooks.Open Me.Range("A3").Value
 
Upvote 0

Forum statistics

Threads
1,215,766
Messages
6,126,758
Members
449,336
Latest member
p17tootie

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