Allow Editing during macro running

Hobolord

Board Regular
Joined
Sep 9, 2015
Messages
64
Hello,

I have Windows 7 and Excel 2010.

I am attempting to develop a macro for a report, but I need to be able to dump data into the report in the middle of the macro. It isn't possible for the macro to retrieve the data for me because it is on Remote Desktop.

I've tried using a msgbox, but I can't edit any cells while the msgbox is up and if I hit ok, the rest of the macro will run without having the data in the tabs.

Is there any way to pause the macro so that the data can be input and then resume it? I don't really want to have two separate macros.

Thank you,
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Do a quick Google search for "Modal" or "Modeless". There is a lot of information available.
 
Upvote 0
two macros would be cleanest I think, much better separation of events, easier to debug
 
Upvote 0
Thanks for the input guys! I'll check out userforms, but most likely I'll just do two macros.
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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