Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel 97 VBA: Multipage set focus method

I can't work out how to set the focus on a particular page
of a multipage control.

MultiPage1.SetFocus

The above gives the whole page control the focus but I
want to select Page1 in particular.

Many thanks


David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel 97 VBA: Multipage set focus method

David,

Use the Value property. A Value of 0 is the first page, 1 is the second
page, and so on. E.g.,

Me.MultiPage1.Value = 0 ' go to page 1


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"David" wrote in message
...
I can't work out how to set the focus on a particular page
of a multipage control.

MultiPage1.SetFocus

The above gives the whole page control the focus but I
want to select Page1 in particular.

Many thanks


David



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 97 VBA: Multipage set focus method

Multipage1.Value = 0

makes the first page the visible page. The page numbers are zero based.

Assume that is what you are asking.

--
Regards,
Tom Ogilvy

"David" wrote in message
...
I can't work out how to set the focus on a particular page
of a multipage control.

MultiPage1.SetFocus

The above gives the whole page control the focus but I
want to select Page1 in particular.

Many thanks


David



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel 97 VBA: Multipage set focus method

That's perfect. Thanks Chip

-----Original Message-----
David,

Use the Value property. A Value of 0 is the first page, 1

is the second
page, and so on. E.g.,

Me.MultiPage1.Value = 0 ' go to page 1


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com

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
Please post this thread a correct full method, method about Nast Runsome New Users to Excel 8 February 25th 08 03:29 PM
Please post this thread a complete correct method, method about te Nast Runsome New Users to Excel 0 February 23rd 08 09:42 PM
Embedding multipage word documents into excel richard Excel Discussion (Misc queries) 2 January 17th 08 07:36 AM
cursor focus in excel fourthhorn Excel Discussion (Misc queries) 1 June 2nd 06 06:05 AM
How do I get focus back on an Excel file? Stumpiana Charts and Charting in Excel 1 November 18th 05 01:21 AM


All times are GMT +1. The time now is 12:06 PM.

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"