+ Reply to Thread
Results 1 to 13 of 13

Macro to change UserForm Label does not work?

  1. #1
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Exclamation Macro to change UserForm Label does not work?

    Hi Guys,

    I am using the following code within a loop to alternate between Image3 and Image4. No Problem, but if I add a label to Alternate in Color, Still only the Images do their thing, but nothing happens to the Label?

    Please Login or Register  to view this content.
    etc.

    What am I doing wrong?
    Last edited by Winon; 01-28-2012 at 05:24 AM. Reason: Solved

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to change UserForm Label does not work?

    Hello Winon,

    Do you have a sample workbook I can look at?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro to change UserForm Label does not work?

    Nothing wrong. Make sure thae label name is correct
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro to change UserForm Label does not work?

    Hello Leith,

    It took me a while, to chop down the 8Mb file down something almost decent. The sample really looks weird.

    But the issue at hand remains the same.

    Thank you for helping out!

    Sorry Leith, I cannot get the Upload File Manager to respond! There are about 30 previously uploaded files which have not been cleared, and that may be the problem!
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to change UserForm Label does not work?

    Hello Winon,

    The IT people have been backing up the server, defragmenting it, etc. All this work is supposed to make the attachments database retrieval faster. Unfortunately, no one knows how long it will be before normal forum operation is restored. In the meantime, you could upload the file to a public file sharing site like MediaFire and post that link.

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro to change UserForm Label does not work?

    Forecolor changes the font colour of the label. I suspect you want BackColor?
    Good luck.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro to change UserForm Label does not work?

    My Friend!

    Hello OnErrorGoto0,

    Indeed, it is the ForeColor I want to Change, not the BackColor.

    Thank You,

    Are you keeping well?

  8. #8
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro to change UserForm Label does not work?

    Apart from 15-20 "do you want to leave this page" messages a day here, yes, thank you. You?

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro to change UserForm Label does not work?

    @ Leith,

    My first and long time Friend on the Forum,

    What excuse is this? You yourself is probably just as well qualified, if not better, to quickly solve the little I.T. issues!

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro to change UserForm Label does not work?

    @ OnErrorGoto0,

    Don't even mention it, I constantly receive a messge - "Are you sure you want to navigate away from this Page?" and then a little threat warning me that if I do - " You will lose all information" or "Data" Or something to that effect. Bla..., Bla...

    But in all fairness, I do appreciate the new look. Somehow got used to it, and I must admit that they seem to be working hard at still making it even better. Growing pains I suppose. But what an Ideal opportunity to pull the "Mickey" out of them all the same!

    Otherwise, I am keeping well, thank you. Spent the entire day for 19 hours non stop learning, or trying to learn how really to get to grips with VBA. Problem is the Syntax. I am convinced it must be written on a sacred scroll somewhere, and only accessible to a prevelidged few. And only a few of these people are prepared to part with some of that knowledge in tiny bits of custom adapted code, specific to a particular problem. EEEKK!!!

  11. #11
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro to change UserForm Label does not work?

    VBA is not that difficult really - at least to get the basic syntax. Personally I find it useful to have reference books on pure VBA (rather than related to a specific application's object model) as well as application-specific tomes.
    Many other languages are, to me at least, far harder.

  12. #12
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro to change UserForm Label does not work?

    Perhaps you would'nt mind sharing with me some of the names of such literature. Maybe I could source it locally, or if need be from where ever?

  13. #13
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Macro to change UserForm Label does not work?

    O'Reilly have a VB/VBA in a nutshell reference. There is also the VBA programmers handbook that was recommended to me - worth buying if you can find it for the code samples alone.

+ 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