Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve/Set Textbox Values

Status
Not open for further replies.

vbaprogammer

Programmer
Sep 16, 1999
59
US
This question relates to WORD VBA only:

I know I can use this:

Me.Textbox1.Value = 2345 or Me.Textbox1.text = "Hello"
and
x = Me.Textbox1.Value (or text)

But in this case if have multiple frames and tabs

I have a form -- frmMain
frmMain has mpgWizard -- a multipage control
mpgWizard (On Page5) has fraPTInfo -- a frame
fraPTInfo has mpgPTOptions -- a multipage control
mpgPTOptions has (on Page12) txtPTAmount1.

I need to set and retrieve values from/to txtPTAmount1 (or setfocus, backcolor, etc.)

I can't seem to get the syntax right for this control (and others). Can anyone help?

i.e., x = Me.mpgWizard.fraPTInfo.mpgPTOptions.txtPTAmount1.text ...
or is this even possible????

Thanks

WordVBAProgrammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top