Results 1 to 5 of 5

Input User form Data into a separate Worksheet to Macro button

Threaded View

Martin.thomo24 Input User form Data into a... 09-22-2014, 08:57 AM
Kaper Re: Input User form Data into... 09-22-2014, 09:09 AM
Martin.thomo24 Re: Input User form Data into... 09-22-2014, 09:26 AM
Martin.thomo24 Re: Input User form Data into... 09-22-2014, 09:32 AM
Martin.thomo24 Re: Input User form Data into... 09-22-2014, 09:39 AM
  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    ox
    MS-Off Ver
    2007/2013
    Posts
    4

    Input User form Data into a separate Worksheet to Macro button

    Hi All,

    I am fairly new to VBA programming and need a little help.

    I am currently creating a spreadsheet so a friend can press a button in the first worksheet that will bring up a userfrom. the data will then be entered into the form and the user will press the Add button.

    I have so far created this and it works fine the only problem is it will only enter the data on to the sheet where the button is and I need it to enter the data onto a different sheet to the macro button.

    Below is my current code,

    Private Sub btnAdd_Click()
    rowCounter = 4
    While Cells(rowCounter, 3).Value <> ""
        rowCounter = rowCounter + 1
    Wend
    
    Cells(rowCounter, 3).Value = tbxDate.Text
    Cells(rowCounter, 4).Value = tbxDescription.Text
    Cells(rowCounter, 5).Value = tbxAmount.Text
    End Sub
    Please can someone advise as to what extra code I need enter for this process to work as I wish.

    Thank you for your assistance.

    Martin
    Last edited by Martin.thomo24; 09-22-2014 at 09:35 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  2. [SOLVED] User Form to input values only after command button executed and refresh workbook
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 09:41 AM
  3. Macro to move data from an input form to a datalog worksheet
    By wstring in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2013, 12:28 PM
  4. User Input Form to worksheet
    By meister14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2010, 10:31 PM
  5. Collect User Input Using VBA Form and Record Inputs in Macro Button
    By DD100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2008, 03:29 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