+ Reply to Thread
Results 1 to 8 of 8

Medical Health Quotation Generate

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Question Medical Health Quotation Generate

    Hello,

    I am seeking help to generate health quotation for 4 classes i.e. VIP,A, B & C. Below is the detail explanation. I have attached a sample file but remove the text due to company policy secrets. Kindly keep the same page setup which will help me a lot.

    Generate Quotation:

    1. Script should check the number of member are exists for which class in NRP sheet. Quotation will be generated based on this criteria/theme.

    a. For example if I have values in I28:I34 if should generate quotation for Class VIP class only.
    b. For example if I have values in L28:L34 if should generate quotation for Class A class only.
    c. For example if I have values in O28:O34 if should generate quotation for Class B class only.
    d. For example if I have values in R28:R34 if should generate quotation for Class C class only.

    2. Explanation of generating quotation.
    a. If any of the above examples is true then it should copy master quotation with the classes whose members are exits and delete the other columns which is not needed.
    b. Classes should be started from right to left i.e. From column M.
    c. Rest of the rows and columns should be merge to keep the same page setup and display data properly.

    i. Example if the quotation is generated for classes VIP and C. The C class should be displayed in column M whereas VIP class should be displayed in column L and A138: K183 should be merge.

    3. Number of members & Premiums calculation:-
    a. Copy numbers of members from NRP sheet i.e. I28:T34 to quotation sheet i.e. B223:M229 while generating quotation.
    i. Based on class and relation it should copy the number of members. Example: Class VIP = age 0-24 = Child = 5
    b. Copy premiums from NRP sheet i.e. I39:T45 to quotation sheet i.e. B251:M257 while generating quotation.

    I am attaching 2 different sample a sheets to get more clarification. After generating the quotation for VIP class how it looks and for classes VIP & B how it looks.

    I hope the above mentioned details is enough for you guys to help me.

    Waiting for somebody to help me...
    Last edited by hecgroups; 05-14-2012 at 11:36 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Medical Health Quotation Generate

    hi hecgroups, please check attachment, run code "test"

    Colouring in Memebrs Number table and Premiums is done by conditional format.
    Attached Files Attached Files
    Last edited by watersev; 05-15-2012 at 02:13 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Medical Health Quotation Generate

    Thanks for your script. It works an I imagine. Ou are the best. Only because of you my impossible work have converted into possible.

    I have one more request which is related to the same file.

    I want to save NRP sheet in .xls and quotation in .xls & .pdf in same folder. I need format tomsave as A1 value - NRP A23 for both sheets and both format.

    Example: 1000 - www.excelforum.com

    If possible script should be simple so that can be change in future.

    Can it be possible.

    I have already posted a topic for the same. HERE

  4. #4
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Medical Health Quotation Generate

    Hai Mr. Watersev

    Your script is working. Regarding the other request I will inform you later. Please ignore post#3. Thanks for your usual coperation

  5. #5
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Medical Health Quotation Generate

    Hai watersev,

    I hav a new requirement. As you know from my location i am in city Riyadh. So i need to generate quotation in Arabic language also. 90% i ahve done the work. But struck in class. i.e. point 2 in post # 1.

    I am attaching th file please can you solve this issue for me.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Medical Health Quotation Generate

    the first part of the code "Generate_Quotation_Ara" redone:

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Medical Health Quotation Generate

    thanks for your response. I will provide you feedback after checking only original file

  8. #8
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Medical Health Quotation Generate

    The below script is added 2 classes i.e. VIP+ & C+. I have issue with this. The error says "Syntax Error".

    Main Script:-

    Please Login or Register  to view this content.
    Error are here:-

    Please Login or Register  to view this content.
    AND

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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