I have a string that is going to be the headings for my columns in an excel spreadsheet. I have created the string with the headings separated by tabs. I know that if you try to paste a string with tabs from say notepad into a cell in column 1, the string is pasted across the columns (ie the tabs cause the components of the string to be split so that each one goes into a separate column.)
How can I paste a string into a cell and get it to behave as I want?
strHdr = "Date" & Chr(9) & "Average(X)" & Chr(9) & "LCL(X)" & Chr(9) & "UCL(X)" & Chr(9) & _
"Variance" & Chr(9) & "LCL(R)" & Chr(9) & "UCL(R)" & Chr(9) & "Average(R)" & Chr(9) & _
"Certified Value"
Sheets(2).Cells(StartRow, 1).Value = strHdr
This puts the entire string into the first cell.
Thanks
How can I paste a string into a cell and get it to behave as I want?
strHdr = "Date" & Chr(9) & "Average(X)" & Chr(9) & "LCL(X)" & Chr(9) & "UCL(X)" & Chr(9) & _
"Variance" & Chr(9) & "LCL(R)" & Chr(9) & "UCL(R)" & Chr(9) & "Average(R)" & Chr(9) & _
"Certified Value"
Sheets(2).Cells(StartRow, 1).Value = strHdr
This puts the entire string into the first cell.
Thanks