Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default multi-page control questions...

I'm trying to learn to use the multi-page control a
little, and started out right with the online help's
example.

However, when it tries to execute the line:

Set MyTextBox = MultiPage1.Pages
(MultiPage1.Value).Controls.Add
("MSForms.TextBox.1", "MyTextBox", Visible)

(line is not broken into 3 lines in the code, continuation
characters are not the problem),

I get the error:

***************
Run-time error '-2147221005(800401f3)':

Invalid class string
***************

Well, that's all well and good, but I assume it's actually
trying to tell me something?

My guess as to what that would be is that it doesn't
recognize the "MSForms.TextBox.1" part of the .add code?

But, assuming I'm correct, my trouble is that I don't know
where to go to fix that. I'm hoping others know.

And, if one were to want to switch from one page of a
multipage to another, in code, what ist the method or
command?

it's not .select it's not .activate, it's not .setfocus,
it's not .goto, it's not.....

what is it?

(and, I dont' suppose there's anyone who has yet come up
with a way to get MS Help to BE helpful?)






  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default multi-page control questions...

The following should work (and no, I can't explain why):

Dim MyTextBox As msforms.TextBox
Set MyTextBox = MultiPage1.Pages(MultiPage1.Value) _
.Controls.Add("Forms.TextBox.1", "MyTextBox", Visible)

--

Vasant


"mark" wrote in message
...
I'm trying to learn to use the multi-page control a
little, and started out right with the online help's
example.

However, when it tries to execute the line:

Set MyTextBox = MultiPage1.Pages
(MultiPage1.Value).Controls.Add
("MSForms.TextBox.1", "MyTextBox", Visible)

(line is not broken into 3 lines in the code, continuation
characters are not the problem),

I get the error:

***************
Run-time error '-2147221005(800401f3)':

Invalid class string
***************

Well, that's all well and good, but I assume it's actually
trying to tell me something?

My guess as to what that would be is that it doesn't
recognize the "MSForms.TextBox.1" part of the .add code?

But, assuming I'm correct, my trouble is that I don't know
where to go to fix that. I'm hoping others know.

And, if one were to want to switch from one page of a
multipage to another, in code, what ist the method or
command?

it's not .select it's not .activate, it's not .setfocus,
it's not .goto, it's not.....

what is it?

(and, I dont' suppose there's anyone who has yet come up
with a way to get MS Help to BE helpful?)








  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default multi-page control questions...

The following should work (and no, I can't explain why):


Thanks, Vasant.

Do you know how to move from one page to another,
programatically?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default multi-page control questions...

It is not intuitive.

MultiPage1.Value = 0

will take you to Page1, etc.

--

Vasant

"mark" wrote in message
...
The following should work (and no, I can't explain why):



Thanks, Vasant.

Do you know how to move from one page to another,
programatically?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default multi-page control questions...

Ahhh!

I noticed that the multipage control had a value method,
but I didn't think to try it for moving among the pages!

Thanks.

-----Original Message-----
It is not intuitive.

MultiPage1.Value = 0

will take you to Page1, etc.


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
How do I e-mail 1 page of a multi page workbook Lynne Hicks Excel Discussion (Misc queries) 3 March 25th 10 12:58 PM
two questions, Yes/No form control, and how did they create this adjustable area on the sheet... Kelvin[_2_] Excel Worksheet Functions 3 November 29th 07 05:49 PM
Excel 2007 vs. 2003 VBA Control Questions Ondy2112 Excel Discussion (Misc queries) 3 May 29th 07 10:41 PM
Get header only on first page of multi page excel file betwms Excel Discussion (Misc queries) 3 March 29th 06 05:47 PM
Further ActiveX Control (TextBox) questions Stuart[_5_] Excel Programming 0 July 4th 04 05:19 PM


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