default form behavior

  • Thread starter Thread starter Gary Keramidas
  • Start date Start date
G

Gary Keramidas

is there any way to change the default form behavior from modal to modeless.
it's my own fault, but i end up losing more code when i create a form to perform
a printpreview. i always forget to change it.
 
i know how to do it, i want the default property set to false every time i
create a form, so i don't have to remember to do it..
 
There is no way to change the default value. You could write an add-in with
a command to insert a form with code like

Dim UF As Object
With Application.VBE.ActiveVBProject
Set UF = .VBComponents.Add(vbext_ct_MSForm)
UF.Properties("ShowModal").Value = False
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
ok, thanks for the idea, chip.

--


Gary


Chip Pearson said:
There is no way to change the default value. You could write an add-in with a
command to insert a form with code like

Dim UF As Object
With Application.VBE.ActiveVBProject
Set UF = .VBComponents.Add(vbext_ct_MSForm)
UF.Properties("ShowModal").Value = False
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top