I have this macro that supposed to select two excel files and open them. when I click process it should open both excel files but only one file opens. is there a way to get the macro to open both? see attach zip file.
Thanks
I have this macro that supposed to select two excel files and open them. when I click process it should open both excel files but only one file opens. is there a way to get the macro to open both? see attach zip file.
Thanks
Your 2nd workbook open command is inside the If command dealing with a blank textbox2
You also only need to test the value of PreviousFile & NewFile once
Replace your CmdProcess_Click with this version
![]()
Please Login or Register to view this content.
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
What happens when you step through the macro?
Thanks it worked perfectly.
Glad to hear it resolved your problem
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks