Learn when you want, where you want with convenient online training courses. Sign up now!
[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Dim arrTemp As Variant
Dim strTemp As String
Dim rngData As Range
Dim lngRow As Long
Dim shtSheet As Worksheet
' Define the range of cells to break apart lines (all of column 1)
Set rngData = Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(ActiveSheet.Cells.Rows.Count, 1).End(xlUp))
' Copy cell values into array
arrTemp = rngData.Value
' "Flatten" array in to text string, placing <LF> between each cell's text
strTemp = ""
For lngRow = 1 To UBound(arrTemp, 1)
If strTemp = "" Then
strTemp = arrTemp(lngRow, 1)
strTemp = strTemp & arrTemp(lngRow, 1) & Chr(10)
' Split temp string of all data at each <LF>
' This creates a new array with each line of text in a different element
arrTemp = Split(strTemp, Chr(10))
' Copy the new array of lines back to the sheet, overwriting old data
Set rngData = Range("A1")
Set rngData = rngData.Resize(UBound(arrTemp), 1)
rngData.Value = Application.Transpose(arrTemp)
Open in new window
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.