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"
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,657
Messages
6,120,769
Members
448,991
Latest member
Hanakoro

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