+ Reply to Thread
Results 1 to 9 of 9

New worksheet created when value entered

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    Norfolk, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit
    Posts
    30

    New worksheet created when value entered

    Hi all

    Hoping for some help please, I am a total novice.

    I need some code which will do the following please.

    I need to create a spreadsheet which logs goods that are coming in and also going back out. On the front worksheet, it will be a brief snapshot of the goods (dates, brief description etc). When a reference number is entered in columnA, I want a new corresponding tab created which is named with the reference number (which someone can then input more details).

    I think this is possible, but is it also possible for the new corresponding worksheet to have different column/table info to the first worksheet? The idea being that the corresponding sheets have much more detail in than the snapshot front worksheet. Hope that makes sense! Example of what I want is attached.

    Many thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    The easy way for an easy code is to create an 'empty' template worksheet which will be copied to create a new worksheet
    for a new reference from the snapshot column A …

  3. #3
    Registered User
    Join Date
    07-17-2019
    Location
    Norfolk, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit
    Posts
    30

    Re: New worksheet created when value entered

    Thanks Marc but I'm not sure how to do this? any help would be appreciated!

    I did come across this code, however, it puts the worksheets at the front as you add a reference number (I need them after the snapshot tab). Also it creates a blank worksheet.

    Please Login or Register  to view this content.
    Last edited by candymycandy; 09-13-2019 at 10:53 AM.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Forum Rule #2 : use tags for code or the appropriate icon !

    No need to create any blank worksheet but just to copy a 'template' worksheet already formatted.
    So like in my previous post, just expecting a new attachment with this template worksheet …

    Edit your profile for the Excel version used.

    Whatever if you create or you copy a sheet as you can place it where you want just reading the VBA help …
    Last edited by Marc L; 09-12-2019 at 11:02 AM.

  5. #5
    Registered User
    Join Date
    07-17-2019
    Location
    Norfolk, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit
    Posts
    30

    Re: New worksheet created when value entered

    I tried to tag the code but couldn’t work out how to do it.

    Still not sure how to action what you’ve said as I’m a novice but thanks anyway.

  6. #6
    Registered User
    Join Date
    07-17-2019
    Location
    Norfolk, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit
    Posts
    30

    Re: New worksheet created when value entered

    Can anyone help at all please? thanks.

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    At least :

    Quote Originally Posted by Marc L View Post
    So like in my previous post, just expecting a new attachment with this template worksheet …

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: New worksheet created when value entered

    here is the code and attached file for reference. please test and let us know is this you are looking for ?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  9. #9
    Registered User
    Join Date
    07-17-2019
    Location
    Norfolk, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit
    Posts
    30

    Re: New worksheet created when value entered

    Hi Naveed! thanks for your help, this works perfectly but has a run time error (424),

    it doesn't like the following line

    Please Login or Register  to view this content.
    Can you help please?
    Microsoft? Excel? for Microsoft 365 MSO

+ 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] Use Current Worksheet Name in Formula to Rename Newly Created Worksheet
    By MICowboy13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2015, 04:26 PM
  2. formula to scan array on a worksheet for data entered in another worksheet
    By cprpacific in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2015, 06:43 PM
  3. Sort data in a worksheet using an array created from another worksheet
    By IamSierraCharlie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 03:10 AM
  4. New worksheet created and all associated rows sent to new worksheet
    By fauncefus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2013, 04:16 PM
  5. Replies: 2
    Last Post: 09-14-2012, 10:10 AM
  6. Referencing a worksheet before it is created?!
    By sooty86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2010, 02:02 PM
  7. User that created worksheet?
    By artolder in forum Excel General
    Replies: 2
    Last Post: 06-30-2008, 12:56 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