+ Reply to Thread
Results 1 to 11 of 11

New Sheets Automatically use template and assigned to a new number

  1. #1
    Registered User
    Join Date
    09-18-2015
    Location
    USA
    MS-Off Ver
    2015
    Posts
    1

    New Sheets Automatically use template and assigned to a new number

    Hi there,

    First time poster, longtime fan.

    Goal:
    *Create a purchase order log with a hyperlinked table of contents that when someone presses new tab a template pops up for them to fill.
    *The new template automatically populates a hyperlink in the table of contents.
    *Each new template sheet has a purchase order number assigned to it (ex. 0002) as the name of the sheet.

    Any guidance would be really appreciated. I've been spinning my wheels here and have not gotten too far. Thank you!

  2. #2
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    double click the ThisWorkbook and update the NewSheet event code:
    Please Login or Register  to view this content.
    Although I do not recomend this for anything but a very small company since excel does not handle multiple users well. You'd be much better off with Front-end and Back-end MS-Access databses if more than one person is to use the file/data.

  3. #3
    Registered User
    Join Date
    08-20-2015
    Location
    california
    MS-Off Ver
    2013
    Posts
    4

    Re: New Sheets Automatically use template and assigned to a new number

    Thanks for your response. I agree that using a macro with multiple users is awkward because you cannot share the workbook across the network. What is Front-end, Back-end MS-Access?

    Attached is a copy of what I've gotten so far. Fairly happy with it, now I just need the columns in the table of contents to populate automatically. Any thoughts to have this constantly upload?

    Thanks again!

    P.O. Log Copy.xlsm

  4. #4
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    here's my 2¢
    Attached Files Attached Files

  5. #5
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    oh, and a front-end/back-end is when you split a MS-Access database into two seprate database files, the one with all the data tables lives on the network, and each user has a copy of the other one where all the queries and GUI live.

    That way if someone gets locked up on their front end that that doesn't hose everyone else on the back end.

  6. #6
    Registered User
    Join Date
    08-20-2015
    Location
    california
    MS-Off Ver
    2013
    Posts
    4

    Re: New Sheets Automatically use template and assigned to a new number

    Gregory,

    Thank you so much. Seriously this helps more than you know, I don't know how you stumbled across this post specifically but I'm very happy you did.

    Very last thing is I cant figure out how to change the order of the log so the most recent (highest number) is at the top of the list.

  7. #7
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    I troll for posts no one else wants to touch: 2+ weeks and 0 replies...

    you should be able to sort your current list A to Z on the po column, and then replace the button code with this updated version:
    Please Login or Register  to view this content.
    If it'd make you feel better using my answer because of my street cred, then you can go ahead and click Add Reputation below to improve it.

  8. #8
    Registered User
    Join Date
    08-20-2015
    Location
    california
    MS-Off Ver
    2013
    Posts
    4

    Re: New Sheets Automatically use template and assigned to a new number

    Gregory,

    The very last thing you could hook me up with is correcting the hyperlink that appears on the TOC.

    Right now any new item created will have a broken hyperlink, until I update the log by pressing F5 in the VBA Editor.

    Again, thank you for the time you've put aside for this

  9. #9
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    looking at the Formulas(tab)>Defined Names(group)>Name Manager(button), it looks like the names for the work book are a little fubar from previous work.

    adding this on at the bottom of the code and running it via F5 should clean them up/reset them:
    Please Login or Register  to view this content.
    after that i believe the links should be working again.

  10. #10
    Registered User
    Join Date
    08-20-2015
    Location
    california
    MS-Off Ver
    2013
    Posts
    4

    Re: New Sheets Automatically use template and assigned to a new number

    Purchase Order Log.xlsm

    Hi Gregory,

    Thank you so much for helping put this together. It was running smoothly for a while except today I heard reports of it hiccuping. The New PO button does not work properly and any new sheet is named as (Template (#)).

    Attached is the most updated file. I'm sure its a quick fix, but I couldnt find my way around your code.

  11. #11
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    280

    Re: New Sheets Automatically use template and assigned to a new number

    sorry i've been offline for a bit,

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 08-12-2015, 01:22 AM
  2. Automatically pull value from assigned cell into text box in graph
    By RinehartResources in forum Excel General
    Replies: 5
    Last Post: 07-24-2014, 05:36 PM
  3. [SOLVED] Copy Template Worksheet to Multiple Worksheets and Incrementally Number Sheets in Workbook
    By dingbat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 01:18 PM
  4. [SOLVED] automatically update a number in cell when template opens
    By Trampas in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 12:55 PM
  5. how can you re-number multiple sheets 'automatically'?
    By Mihaela in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 11:06 PM
  6. Replies: 1
    Last Post: 02-28-2005, 03:06 PM
  7. Automatically number multiple sheets
    By itguyintrainin in forum Excel General
    Replies: 4
    Last Post: 02-03-2005, 08:06 PM

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