Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default renaming a page doesn't stick

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default renaming a page doesn't stick

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.)
--
Regards,
Sébastien
<http://www.ondemandanalysis.com
<http://www.ready-reports.com


"Charlie" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart page renaming is not sticking Tschurin Charts and Charting in Excel 2 March 2nd 08 05:04 PM
Need help getting pictures to stick! shugarmags Excel Discussion (Misc queries) 0 March 6th 07 09:21 PM
Row Stick Dave Excel Discussion (Misc queries) 1 November 2nd 06 12:16 PM
Avoid renaming page fields Marcus Langell Excel Discussion (Misc queries) 2 March 8th 06 03:22 PM
Format won't stick tallyman00 Excel Discussion (Misc queries) 2 January 19th 06 02:55 PM


All times are GMT +1. The time now is 01:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"