+ Reply to Thread
Results 1 to 5 of 5

How to connect two columns in Excel VBA??

  1. #1

    How to connect two columns in Excel VBA??

    Hello ,
    Could you tell me how to in easy way connect two columns.

    I have
    _____A_____B______C_____
    1 | string | text | stringtext |
    2 | string | text | stringtext |
    3 | string | text | stringtext |
    4 | string | text | stringtext |
    ...........................
    40| string | text | stringtext |
    41| etc.. | etc.. | stringtext |

    Can I do it in a way that i have
    Dim Rng1 As Range
    Dim Rng2 As Range

    Set Rng1 = Range("A:A").SpecialCells(xlCellTypeConstants)
    Set Rng3 = Range("B:B").SpecialCells(xlCellTypeConstants)

    Is there an easy function to connect these defined Ranges, Rng1 and
    Rng2??
    Thanks for response


  2. #2
    damorrison
    Guest

    Re: How to connect two columns in Excel VBA??

    easiest way I know is =A1&" "&B1
    I put the quotes in there in case you wanted a space between the text
    and string


  3. #3

    Re: How to connect two columns in Excel VBA??

    If this work for all select Range Rng1 and Rng2. If This automaticaly
    add all cells??


  4. #4
    damorrison
    Guest

    Re: How to connect two columns in Excel VBA??

    well, you will have to copy the formula, I am sure there is a code that
    can be typed up but is it really worth the time.


  5. #5

    Re: How to connect two columns in Excel VBA??

    OK Thanks for answer.


+ 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