+ Reply to Thread
Results 1 to 4 of 4

classify, sort, and save

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    classify, sort, and save

    I am trying to create a multi-step VBA and am close, but need some expert help on the last steps. In the attached spreadsheet three 3 happen:
    1. When it is opened it asks for new data
    2. When the classify macro is run the sheet is reformatted
    3. When the dropdown in A2 is changed it triggers another macro (calculations)

    That all seems to work, what I am having trouble with is putting values in the classification column, highlighting them appropriately, sorting them based on column, and saving that new spreadsheet in a directory. I know that is a lot, but it would help out and save a lot of time for users. Below is a code that works up until the Clinvar step in calculations (that is where the issues above happen). I thought I did it right, but it doesn’t seem to be working. Thanks .

    I have attached two spreadsheets
    TestBook has the highlighting and classification columns correct and just needs to be sorted
    1. Pathogenic on top, followed by likely pathogenic, then Variant of Unknown Significance, then ????, then likely benign, and benign
    Example has the macros in it.

    I hope this makes sense and can be done.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: classify, sort, and save

    Hello cmccabe,

    The two files you said you attached, did not. You should try again.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: classify, sort, and save

    The post here:
    http://www.excelforum.com/excel-prog...-and-sort.html

    has them in it. I had a problem submitting the thread and it seems the attachments didn't work. Thanks.

    If you click no to the opening prompt, then run the classify macro and change the dropdown in A2 to 1 the VBA runs.
    Last edited by cmccabe; 10-11-2014 at 04:59 PM.

  4. #4
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Re: classify, sort, and save

    Are you able to see the files? Thanks.

+ 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. [SOLVED] classify and sort
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2014, 11:32 AM
  2. Classify with VBA
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2014, 02:22 PM
  3. [SOLVED] Count IF To sort/classify
    By Lyaliuae in forum Excel General
    Replies: 6
    Last Post: 01-20-2014, 06:29 AM
  4. [SOLVED] Query Multiple Web Pages> Sort For Specific Criteria > Save Lists of Sort in txt files
    By Tlandress in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-15-2013, 12:09 AM
  5. Classify by textcolour?
    By Bandini in forum Excel General
    Replies: 2
    Last Post: 03-05-2010, 10:05 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