Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
T2B T2B is offline
external usenet poster
 
Posts: 3
Default Writing code to objects within MultiPage object

Design Mode of a worksheet (Excel 2003) I
Rightclick Multipage Object (MultiPage1) and select edit
Insert a textbox onto Page1
Rename textbox1 to txtArrivalDate

Two problems I have. One, after the text box is created I cannot
access the properties again. How is this done?

Two, how do I refer to this textbox in code and write code to its
events? How do I know what events the object has? I am accustomed to
Access forms in which the events to an object are easy to find and
write event handlers for.
  #2   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default Writing code to objects within MultiPage object

On 4/17/2012 4:06 PM, T2B wrote:
Design Mode of a worksheet (Excel 2003) I
Rightclick Multipage Object (MultiPage1) and select edit
Insert a textbox onto Page1
Rename textbox1 to txtArrivalDate

Two problems I have. One, after the text box is created I cannot
access the properties again. How is this done?

Two, how do I refer to this textbox in code and write code to its
events? How do I know what events the object has? I am accustomed to
Access forms in which the events to an object are easy to find and
write event handlers for.


I've never used a multi-page, or any controls for that matter in an
excel sheet, usually use vb or vba to create forms. But since no one
answered you, I put one on a worksheet and put a text box on page1.
I get the properties window no problem. just put cursor inside one of
the controls- multipage or text box and right click properties comes up
if you have properties window up and move cursor to the other control
and click the properties for that control appear in the properties window

as far as referencing the textbox, usually I'd just do something like
Dim oTxtBox (or whatever) as TextBox
Set oTxtBox = txtArrivalDate

you should be able to select txtArrivalDate
in one of the drop down windows at top of vba window, then the events
will be shown in the other dropdown that correspond to that object.
Hope that helps
Mark
  #3   Report Post  
Posted to microsoft.public.excel.programming
mp mp is offline
external usenet poster
 
Posts: 70
Default Writing code to objects within MultiPage object

On 4/17/2012 4:06 PM, T2B wrote:
Design Mode of a worksheet (Excel 2003) I
Rightclick Multipage Object (MultiPage1) and select edit
Insert a textbox onto Page1
Rename textbox1 to txtArrivalDate

Two problems I have. One, after the text box is created I cannot
access the properties again. How is this done?

Two, how do I refer to this textbox in code and write code to its
events? How do I know what events the object has? I am accustomed to
Access forms in which the events to an object are easy to find and
write event handlers for.


also just selecting the objects (worksheet, multipage, textbox) in top
left drop down, will also create a stub for the selected event(whatever
is showing in top right dropdown) for that control
Private Sub MultiPage1_Change()

End Sub

Private Sub txtArrivalDate_Change()

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

End Sub
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
Adding an Object to a MultiPage Brandt Excel Programming 2 November 19th 06 03:05 PM
change from page1 to page2 of MultiPage object BigDave[_27_] Excel Programming 1 November 21st 05 05:59 PM
Creating an Object on a Multipage Michael[_35_] Excel Programming 0 December 14th 04 11:33 PM
Check for any data changes in a form with multipage object Bert Neuenschwander Excel Programming 2 September 24th 04 06:31 AM
Multipage Object on User Form Paul Cheers Excel Programming 2 November 27th 03 11:40 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"