Consulting

Results 1 to 4 of 4

Thread: Solved: Trigger code from SQL Query refresh

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Location
    Sydney
    Posts
    60
    Location

    Smile Solved: Trigger code from SQL Query refresh

    I have some code that I would like to run immediately after each time I refresh my ODBC query in a spreadsheet. Can someone please tell me what event I can use to trigger my code.

  2. #2
    VBAX Regular
    Joined
    Mar 2005
    Location
    Helena, MT
    Posts
    90
    Location
    Untested, but I believe a query refresh will trigger a Worksheet_Change event, so you could us that to fire your query.

    lenze

  3. #3
    VBAX Regular
    Joined
    Jun 2005
    Location
    Sydney
    Posts
    60
    Location
    Thanks. That did the trick perfectly.

  4. #4
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    Peacenik, don't forget to mark this thread as "Solved" using the Thread Tools at the top of the screen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •