PDA

View Full Version : Solved: User Form question



lw22
07-03-2009, 08:07 AM
Alright well I made this spreadsheet for someone I work for where a macro automates some calculations. I have a user form in the sheet that will help make some of the manual tasks the user has to perform easier. The problem is the user has to edit the Excel file while the user form is open however they need to close the form before they can edit anything. Is there a way I can have the user form open and still edit the spreadsheet. Preferably without minimizing the form as well.

Also, is there a way to bind keystrokes to userform buttons? I was hoping I could bind escape to the cancel button

Bob Phillips
07-03-2009, 08:26 AM
Open the form as modeless



Userform1.Show vbModeless

Bob Phillips
07-03-2009, 08:26 AM
Part 2.

Set the Cancel property of that button to True.

lw22
07-03-2009, 08:57 AM
thats perfect thanks