Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

VBA get valuef from a text box

Status
Not open for further replies.

JeniaL

Mechanical
Jun 3, 2014
547
IL
hi all.
cant find how to get a text from the text box in vba. i need to start up macro then fill out some part properties and assign that to parameters. buy how to get a value? it's not a constant value.
Untitled_pilcyx.jpg


i have a macro that adds additional properties but i want to speed up this by skipping pressing alt+enteranks. i'd like to fill it with a form.
thanks in advance.
 
Replies continue below

Recommended for you

thanks a lot ferdo.

having some issues with a script. when i leave part number field or no matter what field empty, message pops up and then macro goes to the end.
in this case i want macro to give me an opportunity to fill empty field before proceeding to the end.
any help will be appreciated

project attached
 
 http://files.engineering.com/getfile.aspx?folder=cdf5940f-6598-4aed-972d-a3eca07d4822&file=VBAForum.catvba
attached new project. having problems with a message when i don't fill one of part properties. i want macro to get me an opportunity
to get back to form and fill missing properties. now if i leave part number blank macro fails.
 
 http://files.engineering.com/getfile.aspx?folder=6c184a38-2f0b-4c4e-bb25-7d9520eccf05&file=FORUM.catvba
I cannot open your vba file, it says you have too many line continuations. Can you use some condition like:

Code:
If sPartNumber <> "" then 'If the part number is not blank
'continue with code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top