Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need to search a group of cells for text and return that text into one
cell. There will always be only one value in that group of cells. |
#2
![]() |
|||
|
|||
![]()
Sub GetText
Dim rng as Range, sStr as String On Error Resume Next set rng = Selection.SpecialCells(xlConstants,xlTextValues) On Error goto 0 if not rng is nothing then for each cell in rng sStr = sStr & cell.Value next Range("A1").Value = sStr End if End sub -- Regards, Tom Ogilvy "Matt" wrote in message ... I need to search a group of cells for text and return that text into one cell. There will always be only one value in that group of cells. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help adding text values | Excel Worksheet Functions | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions | |||
To safety merge cells without data destroyed, and smart unmerge! | Excel Discussion (Misc queries) | |||
Heps to design Locked/Unlocked cells in protected worksheet | Excel Discussion (Misc queries) | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) |