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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,224,802
Messages
6,181,054
Members
453,014
Latest member
Chris258

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