×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VBA get valuef from a text box

VBA get valuef from a text box

VBA get valuef from a text box

(OP)
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.


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.

RE: VBA get valuef from a text box

(OP)
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

RE: VBA get valuef from a text box

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 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources