![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
Hello
Does anyone know how I would disable a page in a multipage? |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
Or does anyone know how to simply refer to a page in a multipage?
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Try
MultiPage.Value -rh |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Quote:
MultiPage1.Pages(1).Visible = False Would hide the second page (multipage pages are zero-based). Hope this helps, Russell |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
Sorry didn't explain myself properly. What i want is to refer to the enabled property of a page in a multipage. I've tried
multipage1.page1.enabled = False but it doesn't work. Any ideas? |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
Russel i used your code, and used it in mine
Private Sub UserForm_Initialize() If Range("route") = "1" Then MultiPage1.Pages(0).Visible = False Else MultiPage1.Pages(1).Visible = False End If End Sub And i get run-time errors. Any idea why? |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Quote:
Sheets("Sheet1").Range("route") Hope this helps, Russell [ This Message was edited by: Russell Hauf on 2002-03-11 17:43 ] |
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|