+ Reply to Thread
Results 1 to 3 of 3

Dynamically can we increase the Size i.e Width or Length of an Autoshape such as Line

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Dynamically can we increase the Size i.e Width or Length of an Autoshape such as Line

    Dynamically can we increase the Size i.e Width or Length of an Autoshape such as Line

    For making an Authentic Form need to use a Dynamic Short/Long Line Shape Below some Text, the length depends on the length of the characters in the text and then it needs to auto-adjust the length and luckily the starting point is always goig to be from the same position..

    Ex:
    Mr. Sachin Ramesh Tendulkar

    Mr. Rahul Dravid

    In the above two cases the Underline is auto-adjusted but it does not give the desired effect so can something be done to Increase the length of the Line AutoShape kept a little more below the above 2 text unlike the Underline.

    Also, how t equate the No of Characters to the length of the Autoshape which is in a DIfferent Unit of Measurement such as points.

    Warm Regards
    e4excel

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Dynamically can we increase the Size i.e Width or Length of an Autoshape such as

    A small adjustment to the code I gave you earlier should give what you are after.
    Why make life hard for yourself? AutoShapes are "awkward" at best to work with, to be kind to them.
    Please Login or Register  to view this content.
    Note the adjustment to this variable
    EndChr = Len(Range("U1")) - 1

    Was that the problem that you were trying to avoid, the underline including the space after the name?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Dynamically can we increase the Size i.e Width or Length of an Autoshape such as

    Thanks again, yours was a brilliant code Marcol and I have still not used it yet but would be adding it in my Final File..as I am still in the process of finalising the FIle so it has not been added and not otherwise..

    But I was not satisfied with the UNDERLINE effect actually which is very close to the TEXT bottom and therefore to make the Form look more Authentic wanted to have a line...which can be kept a little more away from the Bottom..

    Though I have already tried it with my Shabby code..

    But thanks anyways if nothing works then ofocurse I will be using the UNDERLINE effect ..

    Warm Regards
    e4excel

+ 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