+ Reply to Thread
Results 1 to 6 of 6

Append data to a Excel file from a Template

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Navi Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    6

    Append data to a Excel file from a Template

    Dear All,

    I have 2 excel files, One is just a template file and second excel file has actual data. I want user should not access actual data file directly, he would just fill template and click on Save button. Once save button is clicked filled data would get appended into second excel file.
    In other words - Second file would act as a database file.

    I want template file programmed with VBA/Macros.
    I am new to VBA, please help me out around this problem.

    Thanks
    Kailas
    Attached Files Attached Files
    Last edited by kailassingh; 02-27-2013 at 10:12 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Append data to a Excel file from a Template

    Sure. Why dont you attach a sample of your template file and the second file?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    Navi Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Append data to a Excel file from a Template

    Hello Arlu,

    Thanks for your reply.
    Sample files are attached. please give me some break through so I could start programming on it.

    Kailas

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Append data to a Excel file from a Template

    Use this code - You can then assign it to your Save Button.

    Please Login or Register  to view this content.

    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    Navi Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Append data to a Excel file from a Template

    Hello Arlu,

    Sorry for the delayed reply.

    Thanks for your help. Using your code I have started working on my project, if I stuck on any point I will get back to you with a new Excel/VBA problem.

    Thanks once again!

    Kailas

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Append data to a Excel file from a Template

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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