Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do I set the focus to a page in a multipage

I am checking that values have been added to pages in a multipage and
need to set the focus to the tab before i set the focus to the
textbox.

Currently it errors as the page is not in focus....

Here is the code:

'Checks if ADDRESS - LINE 1 is entered
If Me.tbResAddressLineOne = "" Then
MsgBox "Please complete the mandatory 'Address' fields",
vbInformation, mboxheader
'***CODE IN HERE TO FOCUS ON THE MULTIPAGE PAGE BEFORE TRYING TO FOCUS
ON THE BOX***
Me.tbResAddressLineOne.SetFocus
Exit Sub

Help appreciated

Cheers
aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default How do I set the focus to a page in a multipage

Try :

Multipage1.Value = 0 '(Page 0 for first page, 1 for second... )

Before the line :
Me.tbResAddressLineOne.SetFocus

Pierre


"Azza" a écrit dans le message de
m...
I am checking that values have been added to pages in a multipage and
need to set the focus to the tab before i set the focus to the
textbox.

Currently it errors as the page is not in focus....

Here is the code:

'Checks if ADDRESS - LINE 1 is entered
If Me.tbResAddressLineOne = "" Then
MsgBox "Please complete the mandatory 'Address' fields",
vbInformation, mboxheader
'***CODE IN HERE TO FOCUS ON THE MULTIPAGE PAGE BEFORE TRYING TO FOCUS
ON THE BOX***
Me.tbResAddressLineOne.SetFocus
Exit Sub

Help appreciated

Cheers
aaron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I set the focus to a page in a multipage

Thank you very much

Aaron



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Set Focus Problem with Multipage Control sebastienm Excel Programming 0 July 16th 04 10:20 PM
Set Focus Problem with Multipage Control sebastienm Excel Programming 0 July 16th 04 10:20 PM
Set Focus Problem for textbox control on multipage control ExcelDeveloperSPR Excel Programming 1 July 16th 04 08:54 PM
how to put a reference from a page of a multipage form to another page Valeria[_2_] Excel Programming 2 January 25th 04 08:21 AM
Excel 97 VBA: Multipage set focus method David Excel Programming 3 October 7th 03 01:55 PM


All times are GMT +1. The time now is 08:29 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"