+ Reply to Thread
Results 1 to 4 of 4

Change textbox backcolor then save workbook?

  1. #1
    Forum Contributor
    Join Date
    09-23-2007
    Location
    Melbourne, Australia
    Posts
    176

    Change textbox backcolor then save workbook?

    Hi

    When I try to use the code below the backcolor of the textbox does not change until the workbook is saved. I want the textbox to change colour when the save button has been hit on the userform. I would then have another set of code to change the colour back to its original colour once the workbook has been saved. I can't get any colours to change until the macro finishes running. Is this a timing problem?

    Thanks in advance.

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 11-17-2008 at 09:52 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It is working but the save occurs & changes it to black without you seeing the action, you would need to use a wait command to actually see, unless the save is slow. Try this to see
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    if you go into tools > Options > Calculation, is it set on automatic or manual?
    it should be on automatic, to save it to your personal.xls u will need to update something for it to save to your personal.xls
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  4. #4
    Forum Contributor
    Join Date
    09-23-2007
    Location
    Melbourne, Australia
    Posts
    176
    Thanks very much. I suspected this was the issue. I'll now use a message box with an OK button which then changes the colour back. Cheers

+ 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