+ Reply to Thread
Results 1 to 4 of 4

update or record button

  1. #1
    Registered User
    Join Date
    03-21-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    58

    update or record button

    Hi guys,

    Been searching everywhere on the net for help with writing up a macro. What I am trying to do is that I have 2 spreadsheets. One is a database spreadsheet (master) while the other is a template one. What I'm needing help with is a macro that i click on after filling out the template spreadsheet, it would copy various cells into my database spreadsheet and automatically inserts a new row + auto sort alphabetically (if not to much to ask)

    It is for a quoting spreadsheet where after filling out the details, I would click on the update button and it would record all the details into the database spreadsheet.

    VBA is just too confusing to follow but need something to properly record our records. Could someone please help thanks I don't know where to start.

  2. #2
    Registered User
    Join Date
    03-21-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    58

    re: update or record button

    Sorry here is the attached workbook examples that I am trying to build a macro for.
    Attached Files Attached Files

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: update or record button

    I would have the template sheet in the same workbook as the data sheet. The basic code that you need can be adapted from the Contact Form example here

    If you want to maintain separate workbooks then you need to specify which workbook the code is writing to
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    03-21-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: update or record button

    Hey,

    Thanks for that. I've manage to work it out but tweaking a few codes here and there. Got it to report the details of the template into the master as a report so that anyone can access and open up to see all the quotes we've done. One problem is that if someone tries to access the template file and click the macro via the shared network, it bugs out. How would you fix this? Atm all the files are located on my computer while the quote template are accessed by 2 other users from other workstations.
    Last edited by larzep; 03-24-2011 at 06:28 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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