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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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
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
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,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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