+ Reply to Thread
Results 1 to 2 of 2

How to sort table with VBA?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2024
    Location
    Estonia
    MS-Off Ver
    2024
    Posts
    2

    How to sort table with VBA?

    Hello, just very interested how to do it , tried everything i knew. Got the next lesson:
    Set the name of cell B15 to 'criterion1' and the name of cell B18 to 'new'.
    Assign a validation (input check) to the cell named 'criterion1', which allows you to select one birth month from the list.
    Write a VBA program that writes from a large table of people (around cell 'tab_alg') to another region (starting at cell 'new')
    data of those persons whose birth month and city are specified in the 'criterion1' cell in bold.
    The result must have columns: first name, last name, city, month of birth and salary (be sure to in this order).
    The program must also output (MsgBox) the number of records (rows) in the resulting result and the arithmetic mean of the salaries of those people.
    First, the old results must be deleted (the titles remain).
    Also consider the possibility that no records meet the conditions.
    The procedure must start when clicking on a graphic object placed on a worksheet and activating this worksheet.
    NB! Advanced Filter is NOT used in the VBA program of this application

    image (5).pngimage (5).png

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,712

    Re: How to sort table with VBA?

    crossposted: https://www.mrexcel.com/board/thread...h-vba.1268022/

    Rule 7: Cross-posting Without Telling Us

    Your post does not comply with Rule 7 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    However, if you continue to crosspost, you can expect to have your thread BLOCKED until you update it yourself.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Sort Table column by VBA code if data are linked from another table
    By Jirkam in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2022, 04:49 PM
  2. Replies: 5
    Last Post: 03-11-2022, 09:02 AM
  3. [SOLVED] How to sort to a table automatically (without using data sort)
    By mtouhig in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2020, 12:46 PM
  4. Replies: 0
    Last Post: 02-20-2019, 10:53 AM
  5. [SOLVED] Look at column in table, remove duplicates and sort to another table
    By pdx-adm-trm01 in forum Excel General
    Replies: 1
    Last Post: 03-19-2014, 06:56 PM
  6. [SOLVED] Need a formula to sort a table into table (for a Table Plan) and name in column 2
    By jbpianoman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2012, 09:21 AM
  7. Replies: 2
    Last Post: 05-19-2010, 05:14 AM

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