+ Reply to Thread
Results 1 to 12 of 12

Auto creation of sheets based on Data sheet with a sample output shown next to it

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Auto creation of sheets based on Data sheet with a sample output shown next to it

    Hi,
    Let me explain my problem.As stated in my below link,I have 2 sheets.They are as follows :

    -' Data ' Sheet
    - Sample output sheet based on 'Data' Sheet

    Here in 'Data' sheet I have 87 parties in column B, Address in column C,PAN in column D,sales value in column E,Debit in column in F and Credit in column G.Based on data sheet,I want to create automatically all the 87 sheets linked with column B,C,D,E,F,G,data.A sample of one party is shown after "Data" sheet.In that sample output of one party worksheet,following links exist that is connected with 'Data' sheet which are -

    G3,A7,A8,A9,A13,A14,A15 .These are variable whereas all other matters are constant.

    If you require further info,do let me know.
    crosspost:
    http://www.vbaexpress.com/forum/show...857#post300857

    With Best Rgds,
    suresh
    Last edited by alansidman; 11-26-2013 at 01:15 PM.

  2. #2
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Below is the attached workbook.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Dear Sir,

    Thanks for the reply.It did not do few things from your given code-

    1.It did not change / refreshes the sheets when anything I changes in the main 'Data' sheet
    2.It did not displayed column G data as 'Credit Closing Balance' in the generated sheet when Column F data 'Debit Closing Balance' is Nil or has no value
    3.Is it possible to use check Box control from A5 onwards in 'Data' sheet and filter option A4,so that when I check on A4,it automatically get checked all the data for automatically generating sheets and also when any party sheet (column B of 'Data' sheet) I did not like to generate I can manually uncheck all those check box which is below A4 i.e A5 onwards.
    4.Where there is no data,instead of displaying '0' should be display '-'

    Hope this might get solved too.

    With Best Rgds,
    suresh
    Last edited by paradise2sr; 11-26-2013 at 11:22 PM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,554

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    This should do it.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Dear Sir,

    Pls refer to your enclosed worksheet,you have changed the data of column G5 & G6 of 'Data' sheet.When there is no data in column F, then there should be data in column G which represents Credit Closing Balance.This things you have not taken into consideration while generating the various sheets.You have left blank stating as- 'Debit Closing Balance: Rs. /- '.Here, now should be 'Credit Closing Balance:Rs. ' with the amount in column G becoz either F4 column is blank or G4 column is blank and accordingly Debit or Credit Closing Balance would be displayed in generated sheet.

    Also you have not stated about check box.

    I think now you have understood.

    With Best Rgds,
    Suresh

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,554

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Are you talking to me?
    Quote Originally Posted by paradise2sr View Post
    you have changed the data of column G5 & G6 of 'Data' sheet
    Then change back to the original.

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Dear Sir,

    Besides that,kindly take into consideration remaining factor that I have explained in the #6.

    With Best Rgds,
    Suresh

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,554

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Then you should change the formula in the "Template" sheet.

    1) Go to VBE and select Sheet2(Template) from Project Explorer
    2) change the Visible status from VerryHidden to Visible

    So that you can see the Template Sheet in Excel.

    The code is only changing Cell reference within the formula when new sheet is added.

    e.g
    =Data!F4&" Closing Balance: "&"Rs. "&Data!F5&"/-"
    will be change to
    =Data!F4&" Closing Balance: "&"Rs. "&Data!F7&"/-"

    So, if the formula is capable to handle what you said, all will be fine.

  10. #10
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Dear Sir,

    Thanks for the reply.Here Data!F4 & Data!F5 should hold the condition when F5 has value.But when F5 has not value then it should Data!G4 & Data!G5 should hold the condition.This how would you incorporate in the formula that you have suggested.As this part is lagging.

    With Best Rgds,
    Suresh

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,554

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    As I said already, it is a problem of your formula.

    As I really don't know how you want the conditions/result in that cell, it will be your job.

  12. #12
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Auto creation of sheets based on Data sheet with a sample output shown next to it

    Quote Originally Posted by jindon View Post
    As I said already, it is a problem of your formula.

    As I really don't know how you want the conditions/result in that cell, it will be your job.
    Ok,thanks for your reply.I will be eagerly waiting that someone might solve this.

    With Best Rgds,
    suresh

+ 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. Populate Output sheet based on input data and lookup condition
    By Cool\m/ in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 04:45 AM
  2. Compare two sheets of Data and output Variance on New Sheet
    By artikyulashun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2012, 01:51 AM
  3. Code to copy data from multiple sheets into one final output sheet.
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-03-2012, 08:51 AM
  4. Importing several Output sheets into one consolidated Output Sheet
    By Ugh_Der in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2009, 08:58 AM
  5. Compare data with in a couple of sheets then output to a blank sheet
    By Sabo, Eric in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2006, 11:10 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