Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default 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   Report Post  
damorrison
 
Posts: n/a
Default 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   Report Post  
 
Posts: n/a
Default 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   Report Post  
damorrison
 
Posts: n/a
Default 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   Report Post  
 
Posts: n/a
Default How to connect two columns in Excel VBA??

OK Thanks for answer.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use Excel to match text data from 2 separate columns ? Dan Excel Worksheet Functions 1 September 29th 05 03:51 AM
remove automatic formatting of new columns in Excel? A Bit Gruntled Excel Discussion (Misc queries) 0 September 28th 05 02:25 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 11:05 PM
How do i copy columns of data in notepad into microsoft excel? JP New Users to Excel 2 February 10th 05 09:47 PM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"