1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

UserForm Help required....Please

Discussion in 'Business Applications' started by snoozee, Jun 2, 2018.

Thread Status:
Not open for further replies.
Advertisement
  1. snoozee

    snoozee It's My Birthday! Thread Starter

    Joined:
    Apr 10, 2006
    Messages:
    264
    I'm creating some userforms in excel and need some help please with 3 pieces.

    [​IMG]

    1. Upload Evidence - when this is clicked I need the document/picture chosen to be put into a cell Reference (July H2) as an object
    2. Send - when this is clicked I need the text from "Assign Task" to appear in the body of an email (the user will input the receiver etc)
    3. Due Date - If there is nothing in the Assign Task textbox then I don't want this date added to the cell reference when "Next" is clicked.

    Here's my code so far

    Private Sub CommandButton3_Click()

    Sheets("July").Range("B3") = TextBox1.Value
    Sheets("July").Range("C3") = TextBox2.Value
    Sheets("July").Range("D3") = DTPicker1.Value


    UserForm2.Show
    Unload UserForm1

    End Sub

    My unload form also appears to not work :-(
     
  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,608
    First Name:
    Hans
    What's wrong with the upload file?
    What's the file's extension?
     
  3. snoozee

    snoozee It's My Birthday! Thread Starter

    Joined:
    Apr 10, 2006
    Messages:
    264
    I'm not sure how to code it so that it puts the object (file) into a cell reference in another worksheet. It's likely to be a jpg or PDF :)
     
  4. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,608
    First Name:
    Hans
    Okay, but can you attach the sample file with these userforms?
     
  5. snoozee

    snoozee It's My Birthday! Thread Starter

    Joined:
    Apr 10, 2006
    Messages:
    264
    I'm still creating them, yet I'll PM you with them due to the data :)
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1211057

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice