Consulting

Results 1 to 2 of 2

Thread: Refresh DB Connection Programatically

  1. #1
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location

    Refresh DB Connection Programatically

    Cross posted here https://forums.mysql.com/read.php?17...885#msg-662885

    Hi

    I've installed MySQL for Excel and loaded some tables into a workbook. I want to hide these tables from the end-user so I need to refresh them from VBA. I can refresh them with the mouse by either right clicking on the table and selecting 'Refresh' or from the Refresh button under the Data option on the Ribbon.

    I've no idea how MySQL for Excel is communicating with the DB, because the connections it has made won't reconnect when I try to manually refresh them, or set them to automatically update every 1min. Yet they will update with the mouse clicks!

    I'm doing it with MouseClick and SendKeys just to get me by for now, but am far from happy with that!

    Any ideas?

    Thanks

    Paul Ked
    Semper in excretia sumus; solum profundum variat.

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Have you recorded a macro yet?
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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