Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I need to create a single string based on 15 individual cells. Each cell has a unique value that will come together to form an account number. Is there a simple or efficient way to do this. The range "A1:O1" should look like 123456789012345. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tim,
Sub Tester01() Dim RCell As Range Dim sStr As String For Each RCell In Range("A1:O1") sStr = sStr & RCell.Value Next MsgBox sStr End Sub --- Regards, Norman "Tim" wrote in message ... Hello, I need to create a single string based on 15 individual cells. Each cell has a unique value that will come together to form an account number. Is there a simple or efficient way to do this. The range "A1:O1" should look like 123456789012345. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Briliant......thank you!!! -----Original Message----- Hi Tim, Sub Tester01() Dim RCell As Range Dim sStr As String For Each RCell In Range("A1:O1") sStr = sStr & RCell.Value Next MsgBox sStr End Sub --- Regards, Norman "Tim" wrote in message ... Hello, I need to create a single string based on 15 individual cells. Each cell has a unique value that will come together to form an account number. Is there a simple or efficient way to do this. The range "A1:O1" should look like 123456789012345. Thanks . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HelloTim
Will this do it seems to work when I run it Sub CELLNUMBERS() Application.ScreenUpdating = False Dim myrange As Range Dim mystring As String Range("A1:O1").Select Set myrange = Selection For Each Cell In myrange mystring = mystring & Cell.Value Next Range("A6").Select Application.ScreenUpdating = True With ActiveCell .Value = mystring .NumberFormat = "0" End With End Sub "Tim" wrote in message ... Hello, I need to create a single string based on 15 individual cells. Each cell has a unique value that will come together to form an account number. Is there a simple or efficient way to do this. The range "A1:O1" should look like 123456789012345. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.772 / Virus Database: 519 - Release Date: 01/10/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup multiple values - sum returned values into single cell | Excel Worksheet Functions | |||
Copy values from a cell based on values of another cell | Excel Discussion (Misc queries) | |||
How to assign values to a cell based on values in another cell? | Excel Worksheet Functions | |||
Search/Filter to find values in another range based on two cell values | Excel Programming |