+ Reply to Thread
Results 1 to 8 of 8

Change userform label height without changing label width

  1. #1
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Change userform label height without changing label width

    So just found out autosize changes the width, which I don't want. I've got a label nested within a frame that allows the individual to view the body of the email they are currently working with and then hide it when the no longer require it.

    Please Login or Register  to view this content.

    I would like to make the AccessChange.EmailBody.Height dynamic without changing the width (PMCode).


    Thanks in advance,


    Janos
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Change userform label height without changing label width

    Hi Janos,

    I've created a userform with a label on it and two buttons. One makes the height taller and the other shorter. Open up the code and see if it helps answer your question.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Change userform label height without changing label width

    Was looking for something more automated like autosize without the width. There are already quite a manual steps in the process of this worksheet so I'm trying to eliminate some of the manual workload.
    Last edited by vamosj; 04-14-2015 at 04:05 PM.

  4. #4
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Change userform label height without changing label width

    Any assistance with automating this task?
    Last edited by vamosj; 04-15-2015 at 12:05 PM. Reason: grammar

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Change userform label height without changing label width

    It looks like the "PMCode" you have in your VBS snippet above is a function or variable somewhere else in the code. Can you find and display how it is arrived at?

  6. #6
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Change userform label height without changing label width

    PMCode is the magical code that we have yet to create. I put it there for representation.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Change userform label height without changing label width

    I'm having trouble dealing with the magic to get a real answer.

  8. #8
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Change userform label height without changing label width

    Quote Originally Posted by MarvinP View Post
    I'm having trouble dealing with the magic to get a real answer.
    Is this due to not understanding me (I can sometimes be a bit unclear sometimes I guess) or having a problem figuring out a solution?


    If it is a misunderstanding, the PMCode is not set anywhere else in the subroutine. I put it there as an example of what I was trying to do.

    Let me try doing it this way.


    Please Login or Register  to view this content.
    Last edited by vamosj; 04-16-2015 at 01:10 PM. Reason: formatting

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. With a move label macro, prevent label from moving onto another label
    By SocratesJC in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2014, 12:34 AM
  2. Dyanmically changing userform's label based on total time elpased (please help!!!!)
    By bhattarainemi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2014, 11:23 PM
  3. [SOLVED] changing userform label control's color dynamically
    By Ouka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2014, 02:26 AM
  4. To Change a Userform Label
    By COJCI in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2011, 06:50 PM
  5. Changing label caption in a Userform to an opterator value
    By jumpjump in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2005, 08:50 PM

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