+ Reply to Thread
Results 1 to 8 of 8

Userform

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Userform

    Hello,

    I have a quick question.
    Is it possible to create a userform and link it to several cells ?

    For example, I want to create a form with the following fields

    Invoice Date
    Invoice Number
    Total Invoice amount

    When I fill these fields I want them to appear in cell A10, B10 and C10 respectively

    Thanks for the help

  2. #2
    Registered User
    Join Date
    11-04-2013
    Location
    Chesham
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Userform

    Sure you can add a command button then view code to add your code to your form so when you are ready you can submit them to cells.

    It would be something like

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Userform

    I created the userform with these fields

    Invoice Date
    Invoice Number
    Invoice Amount
    Date Submitted
    Date Approved

    Where should I put the code? in the module of I should create a button in the excel workbook and paste the code?

  4. #4
    Registered User
    Join Date
    11-04-2013
    Location
    Chesham
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Userform

    That code assumes you have added a command button in the Userform. If you haven't add one from the toolbox in the userform (click 'view' from the top menu if you can't see it) then add a command button, once you have added the command button, click 'view code' and enter the code in there so when you click the button in the form, the code will run.

    Remember to change the "nameofinvoicedatetextbox.Value" to whatever you named the fields (presuming they are text boxes).

    Let me know if you need further help.

  5. #5
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Userform

    I am still having the same error

    I put sheets("Single Invoice").Range("A10").Value = Invoice_date.Value

    But it shows a debug message

  6. #6
    Registered User
    Join Date
    10-14-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    98

    Re: Userform

    It gives me 0 as value in cell A10 B10 and D10

  7. #7
    Registered User
    Join Date
    11-04-2013
    Location
    Chesham
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Userform

    hmm i think it might be a lot quicker if you upload a copy of the spreadsheet to the thread (stripping out any personal data) rather than me trying to second guess the issue

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Userform

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Save data from UserForm into Sheet (how to resolve runtime errors in UserForm tutorial)
    By eighty6 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-14-2015, 07:41 PM
  2. Userform Combobox - select from list, store this as default each time userform loads
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2014, 07:48 AM
  3. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2014, 07:11 AM
  4. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2014, 12:28 PM
  5. [SOLVED] Changed userform combobox to listbox, unable to get userform to retrieve datasheet values
    By dragonabsurdum in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2013, 01:38 PM
  6. [SOLVED] Open a userform from a userform, but preserve the info in the original userform
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 02:38 PM
  7. userform is large.....how to use scrollbar of userform to show all of the userform
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2010, 04:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1