renaming a page doesn't stick

C

Charlie

This code below will rename the Active Page on my multipage. But it doesn't
stay named. The next time I use the form, it's lost it's name. I've done
this similar thing for labels, and their caption will stick, why wn't this?

Private Sub cmRename_Click()
Me.MultiPage2.SelectedItem.Caption = MyValue
End Sub


Private Sub cmCloseForm_Click()
ActiveWorkbook.Save
Unload UserForm
End Sub
 
S

sebastienm

Hi,
Run-time changes do not stick.
Please, check your label again... say it shows 'my label' at design-time
then run your code to show 'hello'. Now, save the book. Close and re-open the
book and you'll see that the label setting is back to the design-time caption
'my Label'.

When your save a book/project, only Design-time settings are saved.
(There might be a few exceptions, I can't think of any right now.)
 

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

Top