Help with pausing macro

c_granstaff

New Member
Joined
Sep 18, 2006
Messages
1
Hello,

I'm somewhat of a newbie and have come across a problem. I have written a macro with a dde link and only want certain data placed in the cells. My app loops and reads continuous data and places each number in a new row. I need to pause the macro at the end of each loop cycle and then restart it (to record the new data). I need to be able to use keyboard entry to restart, preferably the space bar, but will settle for {enter}. I have tried SendKeys, but have not had any luck.

Thanks,

Curtis in Seattle
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the Board!

Take a look at the Wait method in the VBA helpfile. It might be what you're after.

Or you could stall it with a Message Box.

Hope that helps,

Smitty
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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