Pausing the Macro

Premanshu

Board Regular
Joined
Oct 2, 2007
Messages
91
Hi,

Is there anyway i can pause the macro in between to allow the user to select a range on which the remaining part of the macro has to be performed.
like :-

sub xyz()
initial tasks to perform
'
'
pause to allow user to select range (as the excel functions allow)
'
'
Then the rest of the task to be performed on the selected range.
'
end sub

Please help me with this as i desparately need it to happen.


Regards
Premanshu.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Seiya, VBA Noob you guys are really genius. This exactly is what i was searching for. Thanks a lot for guiding me the right way. Can you guys also advice me some site where i can explore more of this kind (i.e the types of inputboxes and more).

Thanks you so much again for being there. :)>

Regards
Premanshu.
 
Upvote 0
You can just get information from vb help file.

Search the with key word "Inputbox"

There are 2 types.

InputBox function
InputBox method
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

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