MACRO QUESTION

duderdog

New Member
Joined
Aug 25, 2002
Messages
3
I'm attempting to create a macro that will execute and then pause for input from the user and then continue. I'm clueless. I'm an old Lotus user where you could put a question in the middle and it would do that...Can anyone help me? Specifically what I want the macro to do is to unprotect the worksheet change the font on the active cell - accept new data - and then reprotect the worksheet.
 

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.

elgringo56

Well-known Member
Joined
Apr 15, 2002
Messages
869
Use an InputBox as follows:

Range("BP1") = InputBox("This is what you want the user to input.")

The macro will stop until the user inputs something and that something will be in BP1 or whatever cell you choose.
 
Upvote 0

duderdog

New Member
Joined
Aug 25, 2002
Messages
3
Thanks for your response but what if it's not an absolute cell but I need it for any active cell --- would it be ActiveCell=InputBox?
 
Upvote 0

duderdog

New Member
Joined
Aug 25, 2002
Messages
3
Thank you - don't mean to be a bother - but does it make a difference if the data to be input is of different types. I.e. some are letters and some are numbers
 
Upvote 0

Forum statistics

Threads
1,191,623
Messages
5,987,740
Members
440,106
Latest member
davcurnutt

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