Set Interactivity of Excel

aboes81

New Member
Joined
May 5, 2009
Messages
2
I am making an addin for excel, using .net, that will show a user form and allow them to select a range of cells. I would like to make it so the user cannot select menu items or close excel while my window is open. Is there a way to do this?

The behavior I'm looking for is similare to using the excel "Insert Function" form.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi aboes81,

To start off with, I would have a look at the article "How to Code a .NET RefEdit Control" by Gabhan Berry.(http://blogs.msdn.com/gabhan_berry/archive/2008/06/12/net-refedit-control.aspx) As you will see from reading the article, this is a pretty complex topic.

Disabling all the menu items while the user is using your form is a whole separate chapter unto itself, and would differ greatly depending on whether your add-in is running in Excel 2003 and below, in which case you would be disabling command bar controls, or Excel 2007, in which case you would be disabling Ribbon controls.

Mike
 
Upvote 0

Forum statistics

Threads
1,225,398
Messages
6,184,729
Members
453,254
Latest member
topeb

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