Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default multipage form

I have a 5 page multipage form and I want to in some cases hide certain pages
and some cases make all of the controls on a given page read only.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default multipage form

the code below is a rough guide. I have put four buttons onto a form with a
multipage object with 5 tabs ( 0 - 4 )
tab 2 ( the third tab) has an edit box as its only control, ie item 0 in the
controls collection
The buttons hide & show the third tab, and enable/disable the editbox

Private Sub cmdDisableEditBox_Click()
With MultiPage1.Pages(2).Controls
.Item(0).Enabled = False
End With
End Sub

Private Sub cmdEnableEditBox_Click()
With MultiPage1.Pages(2).Controls
.Item(0).Enabled = True
End With
End Sub

Private Sub cmdHideTab3_Click()
MultiPage1.Pages(2).Visible = False
End Sub

Private Sub cmdShowTab3_Click()
MultiPage1.Pages(2).Visible = True
End Sub

HTH

Patrick Molloy
Microsoft Excel MVP


"Sandy" wrote:

I have a 5 page multipage form and I want to in some cases hide certain pages
and some cases make all of the controls on a given page read only.

Thanks

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
MultiPage Form Question NFL Excel Discussion (Misc queries) 4 December 30th 09 02:21 PM
Duplicate Values on Multipage form Robbyn Excel Programming 3 March 27th 05 06:14 PM
Multipage & Spinbutton controls on a form Bhuktar S Excel Programming 1 April 21st 04 01:50 PM
Multipage Object on User Form Paul Cheers Excel Programming 2 November 27th 03 11:40 AM
Can I set a page of a Multipage form to active? John T Ingato Excel Programming 2 October 11th 03 12:15 AM


All times are GMT +1. The time now is 03:40 AM.

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

About Us

"It's about Microsoft Excel"