Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default setfocus on multipage tab form gives error message

I am trying to set focus on the first page or first text box on the first page once data has been loaded into the form from the worksheet. I am getting an error: when setting it to text box or first page of: "run-time error 2110 cant move focus to the control because it is disabled, invisible or of a type that does not accept focus". The tab and textbox are enabled and visible so maybe I am trying to put it in in the wrong place? Once the data is loaded onto the form.. It defaults to the last page/tab and I want it to show the first one.. How can I rectify this???

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default setfocus on multipage tab form gives error message

me.Multitab1.page = 0

--
Regards,
Tom Ogilvy



"Cheryl" wrote in message
...
I am trying to set focus on the first page or first text box on the first

page once data has been loaded into the form from the worksheet. I am
getting an error: when setting it to text box or first page of: "run-time
error 2110 cant move focus to the control because it is disabled, invisible
or of a type that does not accept focus". The tab and textbox are enabled
and visible so maybe I am trying to put it in in the wrong place? Once the
data is loaded onto the form.. It defaults to the last page/tab and I want
it to show the first one.. How can I rectify this???



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default setfocus on multipage tab form gives error message

I am not sure why I named the control MultiTab, but if it is multipage1 and
also, the attribute should be value, not page - so bad day overall

me.Multipage1.Value = 0

also, in the second reference I gave you, under multipage, it says:

' Force Page1 to be active when UserForm is displayed.
MultiPage1.Value = 0

so another source of information.

--
Regards,
Tom Ogilvy


"Cheryl" wrote in message
...
I am trying to set focus on the first page or first text box on the first

page once data has been loaded into the form from the worksheet. I am
getting an error: when setting it to text box or first page of: "run-time
error 2110 cant move focus to the control because it is disabled, invisible
or of a type that does not accept focus". The tab and textbox are enabled
and visible so maybe I am trying to put it in in the wrong place? Once the
data is loaded onto the form.. It defaults to the last page/tab and I want
it to show the first one.. How can I rectify this???



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default setfocus on multipage tab form gives error message

This is incorrect - it should be

me.multipage.value = 0

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
me.Multitab1.page = 0

--
Regards,
Tom Ogilvy






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
Multipage & Spinbutton controls on a form Bhuktar S Excel Programming 1 April 21st 04 01:50 PM
SetFocus in user form John Tjia Excel Programming 6 February 2nd 04 03:05 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 07: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"