+ Reply to Thread
Results 1 to 8 of 8

Excel form writing filled data to another Excel file or sheet

  1. #1
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Excel form writing filled data to another Excel file or sheet

    Hi,

    Currently I work on a file which will be more like a form which will be filled by user and after he or she hits the button, the filled data will be written or sent to another Excel file or even Sheet in the same workbook which will store the filled data in database like form. The same as some web form which will post the data to database.

    In other words, the workbook contains to sheets, one with forms to be filled in (cells) and one with specified columns. After filling in the cells on the first sheet and hittin the button, it will trigger the macro which will send data to second sheet and post data from each cell to appopriate column.

    Is it possible? I will appreciate any hint regarding this issue.

    If required I will provide with the sample file.


    P.S. the thread is not solved, I created it from Android app and somehow it marked the thread as solved.
    Last edited by G.Bregvadze; 03-05-2014 at 03:19 PM.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Excel form writing filled data to another Excel file or sheet

    Hello G.Bregvadze,

    Short answer - yes, it is easily done, but you need to post the workbook.

    Regards,

    David

  3. #3
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Excel form writing filled data to another Excel file or sheet

    Hi David,

    I will post it today and with a sample data. thank you

  4. #4
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Excel form writing filled data to another Excel file or sheet

    So as was written the idea is to send the filled in data on "INFO" sheet, and when Submit button is hit the data must be
    send to "BASE" sheet and written to appropriate column.

    The column titles on BASE sheet and cell titles on INFO sheet match.

    Please contact for any details needed.


    Sample file:

    Excel Form.xlsx

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Excel form writing filled data to another Excel file or sheet

    GB Submit Form.xlsm

    Hello GB,

    I have attached the following macro to your button!

    Please Login or Register  to view this content.
    It looks through rows 9 to 12, and any row with something in it (other than the number in column A) causes a row to be written to the Base sheet. It then clears the data from your form.

    I hope this is what you're after.

    Regards,

    David


    When you reply please make it clear WHO you are responding to by mentioning their name.

    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  6. #6
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Excel form writing filled data to another Excel file or sheet

    Hi david,

    This is what I needed, thank you for your help and support.

    But i have one quesiton, Can we add a validation code, which will check the Private Information row, whether if one of the cells is not filled, retunr error and not send the data to base sheet.

  7. #7
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Excel form writing filled data to another Excel file or sheet

    Hi GB,

    I've added a few lines of code to the macro - shown in red. Should solve the problem!

    Please Login or Register  to view this content.
    Regards,

    David


    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  8. #8
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Excel form writing filled data to another Excel file or sheet

    Thank you very much again, you helped me a lot the code works perfectly. Thank you.

+ 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] User form in excel- need help in writing code with if/then statement
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 08:04 AM
  2. How to use excel to consolidate data from one excel sheet into one table form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2013, 05:49 AM
  3. Writing a file’s name (or renaming it ) based on existing excel sheet data
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-30-2012, 08:11 PM
  4. Writing data into excel from a text file
    By chris10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2011, 07:04 AM
  5. Reading data from an excel sheet and writing to another
    By Rain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2005, 06:06 AM

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