chosing filename in dialogbox + press ok with using vba...

bestox

Board Regular
Joined
Apr 2, 2009
Messages
82
i do face an excel which several sheets, all refering to other files but looking exactly the same. i finished now one country, i still need to do so for all the others. so what i need to do is simply now replace all "CAN"-characters with "US", now i have all references to other files changed correctly (and it is easy to do so with a macro).

problem is, that whenever i change a reference, a dialog box popps up, where i need to choose the file too (even tough in the excel file the reference string itself is like it shoud be).

anyone has an idea, how to handle that pop up dialog box with vba? maybe using sendkeys and the file name? (which i can adapt for each sheet easily within the cba code). i have never automatically filled out and confirmed a dialog box inside excel.

thank you a lot!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,275
Messages
6,171,123
Members
452,381
Latest member
Nova88

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