![]() |
#6
|
||||
|
||||
![]()
If the captions on those options are static then you don't need code at all - it is far easier to set this by editing the form itself. If your code is making them static for the sake of showing us your code then I would still use the Form Initialize macro instead of doing it as part of the Document_New macro which locks you into only ever seeing the form in a new document.
FWIW, you could do it in your macro if you change the order to set the captions after the form loads Code:
Private Sub Document_New() 'Automatically runs when this document is opened. With formMain .Show .optSch1.Caption = "School One" .optSch2.Caption = "School Two" .optSch3.Caption = "School Three" End With End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Larry_1 | Excel Programming | 3 | 12-18-2017 06:59 AM |
MACRO in infinite loop when it encounters user defined figure label | photoval | Word VBA | 3 | 02-02-2016 08:26 PM |
Variable arrays from user input | SeattleITguy | Excel Programming | 1 | 01-29-2015 09:19 AM |
![]() |
dsm1995gst | Word VBA | 1 | 09-03-2013 03:43 PM |
Task Form disappearing when assigned | zoids | Outlook | 0 | 03-27-2011 05:01 PM |