Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7610059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:19:39+00:00 2026-05-31T01:19:39+00:00

I have a table in excel that updates automatically (or manually) by pulling from

  • 0

I have a table in excel that updates automatically (or manually) by pulling from a website.

I have another table that is linked, that I want to sort automatically every time the data is updated. Any way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:19:40+00:00Added an answer on May 31, 2026 at 1:19 am

    In the Sheet where the table that needs to update automatically is located, you can add something like the code below (pseudo code) – it will sort the table every time is is changed. Note that it might get slow if you get frequent updates.

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target is in the table (you can check Target.Row and Target.Column for example) Then
            Sort the table
        End If
    End Sub
    

    If the range is a named range called named_range you can do this for example (not very efficient but readable):

    Private Sub Worksheet_Change(ByVal Target As Range)
        For Each c In [named_range]
          If c = Target Then MsgBox "OK"
        Next c
    End Sub
    

    Or you can do this, which will perform better is the named range is large:

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim row_start As Long
        Dim row_end As Long
        Dim col_start As Long
        Dim col_end As Long
    
        row_start = [named_range].Cells(1, 1).Row
        col_start = [named_range].Cells(1, 1).Column
        row_end = row_start + [named_range].Rows.Count - 1
        col_end = col_start + [named_range].Columns.Count - 1
    
        If Target.Row >= row_start And Target.Row <= row_end And Target.Column >= col_start And Target.Column <= col_end Then
          MsgBox "In range"
        End If
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am importing massive amounts of data from Excel that have various table layouts.
I have an Excel table with some data that I would like to export
I have a table in C#, the data is coming from an Excel file.
I have a large table I imported from an Excel spreadsheet. For five of
I have an excel spreadsheet based on a pivot table that is periodically updated
I have a bunch of rows in Excel that I want to paste into
I have a data dump that I manually initiate and I want to automate
I have a table in Excel that looks like this: Column A Column B
I have the following situation: excel-like application, that is accessible from internet. 2 users
I have table rows of data in html being filled from a CGI application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.