Run UserForm When Linked Cell Is Empty

pwebley

Board Regular
Joined
Mar 2, 2011
Messages
69
I have a userform that appears as soon as my workbook is open and it requires that you enter your first and last name. It then dumps the name into a linked cell. I need help making that userform reappear if the contents of the linked cell are deleted or if it is empty. Any help will be appreciated.
 
"Is this code supposed to be in Module1 of the workbook?"

Right Click the worksheet>View Code and paste it in there.

P.S. Andrew's code worked for me, otherwise try it in a new workbook and see if it works there.
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I have no doubt that you are right, I must be doing something wrong. I copied and pasted your code into my Module1 and received the same msgbox asking for a macro name to run. This should run my userform1 if the contents of cell C2 are removed or the cell is empty correct? If so thank you for your help. I will continue to run through trial and error. This has helped me though.
moz-screenshot.png
moz-screenshot-1.png
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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