Provide input value to another macro

cknutson

New Member
Joined
Nov 28, 2011
Messages
1
Hello,

I am creating a macro which must open another excel workbook and run a second macro in that workbook. I have no issues getting the other workbook to open or to start the macro.
ASFMarketValues_Date
However, at the start of the macro is an InputBox popup which requires a response. I am unfamiliar with how to populate the needed text and press "OK". Preferably the box would be filled with "CompletedReport_mm.dd.yyyy" where mm.dd.yyyy = today's date.

I've attempted to use SendKeys, but this does not seem to work. I also cannot access the code for the second macro because it is password protected.

Application.Run "'XML Creator for Revport.xls'!create_xml"
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Gary McMaster

Well-known Member
Joined
Feb 8, 2009
Messages
1,977
I've also seen a freeware version of the program below. I believe it will be able to click "OK" or whatever but I'm not sure if it can do anything for you in the way of entering data in an input box. I've never actually used this program but have often seen it recommended for this type of scenario.

http://push-the-freakin-button.en.softonic.com/?ab=5

Gary
 

Watch MrExcel Video

Forum statistics

Threads
1,122,215
Messages
5,594,883
Members
413,947
Latest member
gizmolucy

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
Top