+ Reply to Thread
Results 1 to 5 of 5

Input User form Data into a separate Worksheet to Macro button

  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,

    Please Login or Register  to view this content.
    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.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,617

    Re: Input User form Data into a separate Worksheet to Macro button

    Please Login or Register  to view this content.
    PS1: take some to read http://www.excelforum.com/forum-rule...rum-rules.html and then edit your post and add code tags as required by our rules.

    PS2: While -wend approach is not very effective way to find first empty cell in column C use http://www.excelforum.com/search.php to find alternative ways to locate first empty cell in a given column.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-22-2014
    Location
    ox
    MS-Off Ver
    2007/2013
    Posts
    4

    Re: Input User form Data into a separate Worksheet to Macro button

    Thank you for your assistance and very quick reply, I will also check out your links.

    It is greatly appreciated

  4. #4
    Registered User
    Join Date
    09-22-2014
    Location
    ox
    MS-Off Ver
    2007/2013
    Posts
    4

    Re: Input User form Data into a separate Worksheet to Macro button

    Hi again, I have just tried the new code and I am getting the error code - Run time error - '9', Subscript out of range

    any ideas?

    code below

    Please Login or Register  to view this content.
    I don't know if this will help but the first line of data needs to be entered onto row 4, column C.

    Many Thanks
    Last edited by Martin.thomo24; 09-22-2014 at 09:34 AM.

  5. #5
    Registered User
    Join Date
    09-22-2014
    Location
    ox
    MS-Off Ver
    2007/2013
    Posts
    4

    Re: Input User form Data into a separate Worksheet to Macro button

    I have played about with this code and it is now working.

    Thank you so much for your assistance

+ 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. 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