+ Reply to Thread
Results 1 to 2 of 2

How to create automatically new sheets and the in each one of them create a report

  1. #1
    Registered User
    Join Date
    11-25-2018
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    1

    How to create automatically new sheets and the in each one of them create a report

    Hi all,

    iīm trying to create automatically, based in a list of client codes, new sheets (and the name of each one of them are the client codes) and then inside of them create a report from sql data base.

    for the first part i have the code to create new sheets with the name based in a list of codes.

    but the second part i canīt figure out how to create the report.

    can anybody help me out?

    thnks
    RS

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: How to create automatically new sheets and the in each one of them create a report

    Hi, welcome to the forum.
    I assume you already have an SQL script that reads and the data from you database?
    You could record a macro for at least one client and then use the recorded VBA (you will need to edit it) to allow for different SQL statements.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say 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. Macro - Create Report from two sheets in same workbook
    By M12NIX in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-11-2016, 08:56 AM
  2. Replies: 30
    Last Post: 08-17-2015, 01:18 AM
  3. Replies: 0
    Last Post: 04-21-2014, 03:42 PM
  4. VBA to compare data on two sheets and create an exceptions report on the third
    By riptake in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 06:06 AM
  5. Replies: 0
    Last Post: 01-16-2013, 12:14 AM
  6. Create report compareing 2 Sheets
    By Gero in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2009, 07:49 PM
  7. Create pivot automatically in all the sheets based on the data in sheets
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2008, 11:59 AM

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