Consulting

Results 1 to 4 of 4

Thread: Solved: when tab characters are in variable i have a problem

  1. #1
    VBAX Mentor
    Joined
    Jan 2006
    Posts
    348
    Location

    Solved: when tab characters are in variable i have a problem

    How can I paste this variable into cell, but each tab delimited entry should go into separate cell


    luka ="NONE NONE __ ____ _____ __ "
    ActiveCell = luka 'this will put all the entries in one cell even if tabs are between entries

    The angry smiles are squares which suppose to represent tab characters, but when you put it into active cell those tabs are not considered as tabs copy and paste into cell would work OK

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    aryluka = Split(luka, vbTab)
    ActiveCell.Resize(, UBound(aryluka) - LBound(aryluka) + 1) = aryluka
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Jan 2006
    Posts
    348
    Location
    Man unbelivable this worked great thnx

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Unbelievable? Why? It is nothing more than I was saying in your previous post.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •