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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
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
 

Forum statistics

Threads
1,140,941
Messages
5,703,292
Members
421,290
Latest member
java

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