+ Reply to Thread
Results 1 to 5 of 5

How to display a custom made table on a new sheet automatically at creation?

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    Timisoara
    MS-Off Ver
    2013
    Posts
    4

    How to display a custom made table on a new sheet automatically at creation?

    Hello and nice to meet you guys on this forum!

    I made table on the main worksheet and did some customization to it. Is there a way such that when I create the new sheet (sheet 2, sheet 3 etc) to automatically display that table, but without any of the entries on the sheet 1?

    What I want to do is to emulate a catalog with grades for a student on a sheet. When I create a new sheet (a new empty catalog for a student) I want the empty table.

    Say that I made this table
    JpXQKu5.png

    on the Sheet1. When I create Sheet2 I want it to be o the exact same position with the exact columns names, but with no contents in its cells

  2. #2
    Valued Forum Contributor WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    867

    Re: How to display a custom made table on a new sheet automatically at creation?

    Alt+F11 to bring up the VBA editor then double-click the "ThisWorkbook" node on the left and paste the following:

    Please Login or Register  to view this content.
    That might do what you're looking for.

    WBD
    Excel 2016 on Windows 10, looking for rep!

  3. #3
    Registered User
    Join Date
    01-13-2020
    Location
    Timisoara
    MS-Off Ver
    2013
    Posts
    4

    Re: How to display a custom made table on a new sheet automatically at creation?

    And repeating this sequence with an incremented index
    HTML Code: 
    Set lo = Sheets("Sheet1").ListObjects(1)
    will do the trick for every table on the main sheet?

  4. #4
    Valued Forum Contributor WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    867

    Re: How to display a custom made table on a new sheet automatically at creation?

    If you have more than one table then I would suggest:

    Please Login or Register  to view this content.
    WBD

  5. #5
    Registered User
    Join Date
    01-13-2020
    Location
    Timisoara
    MS-Off Ver
    2013
    Posts
    4

    Re: How to display a custom made table on a new sheet automatically at creation?

    That's it, 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. Display table (using external DB) using custom formatting?
    By DJRCB in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-21-2017, 11:42 AM
  2. Replies: 0
    Last Post: 01-16-2013, 12:14 AM
  3. [SOLVED] Automatically open a different sheet within the workbook when a selection is made
    By clovelly in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-16-2012, 10:53 PM
  4. VBA - Custom function creation
    By Artemon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2012, 08:54 AM
  5. Creation of Custom Functions
    By Miraun in forum Excel General
    Replies: 2
    Last Post: 04-28-2010, 10:04 AM
  6. Custom Button Creation
    By toothbrush in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2009, 05:05 PM
  7. Replies: 2
    Last Post: 03-09-2009, 02:24 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