+ Reply to Thread
Results 1 to 4 of 4

always need 32 characters

  1. #1
    Registered User
    Join Date
    06-28-2006
    Location
    Brockville, Ontario
    MS-Off Ver
    Microsoft 365
    Posts
    6

    always need 32 characters

    I need to copy cell entries into another program that then puts a perspective resize on the text. In order for the perspective to work properly, the content has to be exactly 32 characters in length so I need something that will figure out the current number of characters in the cell but then add the appropriate number of blank spaces.
    Thanks in advance.
    John

  2. #2
    Charlie
    Guest

    RE: always need 32 characters

    StringOf32 = Left(OrigString & Space(32), 32)

    "ringnab" wrote:

    >
    > I need to copy cell entries into another program that then puts a
    > perspective resize on the text. In order for the perspective to work
    > properly, the content has to be exactly 32 characters in length so I
    > need something that will figure out the current number of characters in
    > the cell but then add the appropriate number of blank spaces.
    > Thanks in advance.
    > John
    >
    >
    > --
    > ringnab
    > ------------------------------------------------------------------------
    > ringnab's Profile: http://www.excelforum.com/member.php...o&userid=35876
    > View this thread: http://www.excelforum.com/showthread...hreadid=560825
    >
    >


  3. #3
    Lamont
    Guest

    RE: always need 32 characters

    Private Sub DoPadTo32()
    Dim sResult As String * 32
    Dim cellCurr As Range
    Set cellCurr = ActiveCell
    cellCurr.Select
    LSet sResult = cellCurr.Value

    'Documentation From Excel VBA HELP follows
    'LSet stringvar = string
    'LSet varname1 = varname2
    'The LSet statement syntax has these parts:
    'Part Description
    'stringvar Required. Name of string variable.
    'tring Required. String expression to be left-aligned within stringvar.
    'varname1 Required. Variable name of the user-defined type being copied
    to.
    'varname2 Required. Variable name of the user-defined type being copied
    from.
    End Sub
    --
    Lamont Phemister


    "ringnab" wrote:

    >
    > I need to copy cell entries into another program that then puts a
    > perspective resize on the text. In order for the perspective to work
    > properly, the content has to be exactly 32 characters in length so I
    > need something that will figure out the current number of characters in
    > the cell but then add the appropriate number of blank spaces.
    > Thanks in advance.
    > John
    >
    >
    > --
    > ringnab
    > ------------------------------------------------------------------------
    > ringnab's Profile: http://www.excelforum.com/member.php...o&userid=35876
    > View this thread: http://www.excelforum.com/showthread...hreadid=560825
    >
    >


  4. #4
    JMB
    Guest

    RE: always need 32 characters

    Was it necessary to multi-post???

    "ringnab" wrote:

    >
    > I need to copy cell entries into another program that then puts a
    > perspective resize on the text. In order for the perspective to work
    > properly, the content has to be exactly 32 characters in length so I
    > need something that will figure out the current number of characters in
    > the cell but then add the appropriate number of blank spaces.
    > Thanks in advance.
    > John
    >
    >
    > --
    > ringnab
    > ------------------------------------------------------------------------
    > ringnab's Profile: http://www.excelforum.com/member.php...o&userid=35876
    > View this thread: http://www.excelforum.com/showthread...hreadid=560825
    >
    >


+ 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