+ Reply to Thread
Results 1 to 5 of 5

Refreshing activex textbox

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Refreshing activex textbox

    I've built a spreadsheet with quasi-animation for a physics class on projectile motion. In it there's a animated chart showing velocity change as a function of distance. The chart has on it an ActiveX textbox that refers to a cell that contains a formula showing "V_y = {velocity}". I've tried a number of things to get the display of the textbox to change during the animation. If I break the code at the line that updates the cell referenced by the textbox the display changes. But I can't figure out how to get the display to update while the code is running.

    Any and all suggestions welcome.

    Many thanks.

    George

    PS Thanks to SHG for the thread showing how to draw a line. I've used it for an animated component and resultant vector display.
    Last edited by geoB; 04-06-2009 at 05:58 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Refreshing activex textbox

    Take a look at Help for the Repaint method.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Refreshing activex textbox

    Thanks for your reply. Unfortunately,
    Please Login or Register  to view this content.
    generates an "Object doesn't support this property or method..." error.

    So is my reference to the object incorrect? Or?

    G

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Refreshing activex textbox

    Sorry, I didn't read your question closely. Repaint applies to a userform. You might try DoEvents (a standalone statement).

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Refreshing activex textbox

    Again, thanks, especially for reading more closely . DoEvents does the trick.

    George

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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