+ Reply to Thread
Results 1 to 8 of 8

"LinkedCell" Textbox not updating

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    4

    "LinkedCell" Textbox not updating

    Hi all,

    I'm having an issue with an activeX Textbox not updating when the cell that it has been linked to updates

    There are identical textboxes in separate worksheets(A to E), with each one being linked to the same reference cell (in sheet F), such that any change in the text of one textbox will automatically update the other textboxes in worksheets A-E

    All of the textboxes are updating fine, expect for the one in worksheet E, which does not update when any of the textboxes in sheets A-D are changed. However, changing the textbox in sheet E will update the textboxes in A-D, which means the linkedcell is partially working.

    Has anyone had a similar experience, and can shed some light on my problem?

    Cheers

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: "LinkedCell" Textbox not updating

    You can force it with the following code in the worksheet module

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    4

    Re: "LinkedCell" Textbox not updating

    Thanks for the reply Andy, I added the code to sheet with the reference cell (sheet F) but the textbox in E still doesn't refresh when there is a change in value.

    The code i attempted to use:

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: "LinkedCell" Textbox not updating

    Should that read Textbox1 Johnny?

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    4

    Re: "LinkedCell" Textbox not updating

    Andy, the "TextBox" in the above code is just a placeholder for the actual name i assigned to the textbox

  6. #6
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: "LinkedCell" Textbox not updating

    Ok.......... In that case I'm a bit baffled... it should work
    maybe you could add a msgbox temporarily into the code just to verify it's triggering.

  7. #7
    Registered User
    Join Date
    04-18-2013
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    4

    Re: "LinkedCell" Textbox not updating

    Could you assist with the coding for the msgbox? still quite new to VBA.

  8. #8
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: "LinkedCell" Textbox not updating

    Sure

    Please Login or Register  to view this content.
    This will at least let you know whether it's triggering or not

    .... Also verify that the code is in the Sheet E worksheet module and not a standard VBA code module.
    There should be no need to reference the sheets since it's being activated at the sheet level so you don't need Sheets("E").
    Last edited by AndyLitch; 05-07-2013 at 04:14 AM.

+ 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