+ Reply to Thread
Results 1 to 11 of 11

count & insert template sheets

  1. #1
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    count & insert template sheets

    I need a coding for count of "Reconciled" items and insert that number of template sheets.
    Attached is the sheet for your better understanding.

    With the help of attached example I need a coding which will count the number of items the word "reconciled" appears in control sheet (L:L) and should insert that number of template sheets. In this example the count is 16 so it should insert 16 new template sheets.
    Pls note the count would not always be the same and count would not always be in cell L123.

    After inserting the template it should be renamed as the combined value from the cells.
    for example from control sheet the template should be renamed as from E8,D8 & F8
    First should be affiliate then subdivision and then currency. It should include "-" between the names.
    Kindly help.

    --
    Thanks,

    Mayank Jain.
    JLR Inter-Company Receivables.
    Attached Files Attached Files
    Last edited by meet2mayank; 02-24-2010 at 03:52 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: count & insert template sheets

    The number "16" isn't really needed, is it? You just need one template added for each row that says "Reconciled" in column L, and named for E8-D8-F8 from the same row? Correct?

    Please Login or Register  to view this content.

    That macro goes into a regular module (Module1, Module2, etc.)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: count & insert template sheets

    Hi JBeaucaire !!!

    It worked!!!! gre8...thanks a tonnnn....ur great...ur simply superb!!!!
    You have really made my day!!!! Thanks a lot for you efforts.

    just a small guidance required.
    The request I made was a part of my macro which I am trying to code.
    But when I tried to insert your code after my code its not working.
    Its working fine when run separately.
    could you help me in this matter pls...
    Attached is my macro in txt format and the files on which I will use the macro.
    Kindly give your expert view.

    Thanks in advance.
    Cheers!!
    Mayank
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: count & insert template sheets

    I think you uploaded the wrong file.

  5. #5
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: count & insert template sheets

    Apologies!!! JBeaucaire

    Please find attached right sheets.

    Thanks & regards
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: count & insert template sheets

    It appears my macro is a replacement for your Template_1 macro, correct?

    So you want my code added into your Macro3 code? That macro doesn't seem to really do anything.

  7. #7
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: count & insert template sheets

    Hi JBeaucaire.

    Thanks for caring to reply. Please dont refer to the macro in the sheets I have provided.
    My original macro is in txt file and I just want you to combine my macro with your macro and test on the files I have provided.

    I tried to combine your macro with my one so that they could run in a single click. Your just have to place your macro at the end of my macro which i have provided in txt format.

    I guess the codes "Option Explicit" and "Option Compare Text" are the cause for the same.

    Kind Regards
    Mayank

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: count & insert template sheets

    Perhaps you just need to create a third macro that runs the two macros.

    Please Login or Register  to view this content.
    You can put my macro in a module of its own if the options included above mine interfere with yours.

  9. #9
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Thumbs up Re: count & insert template sheets

    Thats what is called an "Experts Advice"!!!

    thanks a lot it worked....
    Thanks from my bottom of my heart for your generous help.

    May be I will require more help to finalize my macro.
    May I have your personal mail id so that I could contact you directly

    Regards
    Mayank

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: count & insert template sheets

    There's contact info on my website, link is in my signature.

    But you would probably be best served by continuing to use the open forum. It's quite a team here of contributors.

    ==========
    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

  11. #11
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: count & insert template sheets

    Hi JBeaucaire,

    I am not able to add reputation for you as i guess i dont have sufficient points to do so.

    Sorry for the same.
    Thanks & Regards
    Mayank

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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