For Each cell In wb.Sheets("RP Analysis").Range("F5:F" & lastRow)
structure = "Layer " & WorksheetFunction.RoundDown(cell.Value, 2) & ": " & WorksheetFunction.RoundDown(cell.Offset(0, 2).Value / 1000000, 2) & " xs " & WorksheetFunction.RoundDown(cell.Offset(0, 3).Value / 1000000, 2) & " attaches at "
RMS = RMS & structure & WorksheetFunction.RoundDown(cell.Offset(0, 10).Value, 2) & "m and exhausts at " & WorksheetFunction.RoundDown(cell.Offset(0, 11).Value, 2) & "m" & vbLf
AIR = AIR & structure & WorksheetFunction.RoundDown(cell.Offset(0, 6).Value, 2) & "m and exhausts at " & WorksheetFunction.RoundDown(cell.Offset(0, 7).Value, 2) & "m" & vbLf
Next cell
For Each cell In wb.Sheets("RP Analysis").Range("A9:A" & 19)
gucurve = gucurve & cell.Value & ":- " & Format(cell.Offset(0, 2).Value / cell.Offset(0, 1).Value, "Percent") & vbLf
Next cell
TextBox1.Value = "RP years RMS/AIR difference" & vbLf & gucurve & vbLf & "AIR" & vbLf & AIR & vbLf & "RMS" & vbLf & RMS
This produces
Layer 1: 25 xs 50 attaches at 8.16m and exhausts at 10.4m
Layer 2: 100 xs 75 attaches at 10.4m and exhausts at 20.15m
Layer 3: 44 xs 175 attaches at 20.15m and exhausts at 24.96m
Layer 4: 144 xs 175 attaches at 20.15m and exhausts at 34.86m
I want it to produce
Layer 1: 25 xs 50 attaches at 8.16m and exhausts at 10.4m
Layer 2:100 xs 75 attaches at 10.4m and exhausts at 20.15m
Layer 3: 44 xs 175 attaches at 20.15m and exhausts at 24.96m
Layer 4:144 xs 175 attaches at 20.15m and exhausts at 34.86m
So I think I need fixed columns with defined widths with everything right centered. The numbers won't be more than 4 digits ever
How do I go about this?