I wonder whether someone may be able to help me please.
I am using the code below to copy and paste data between sheets.
The problem I have is that the values copied in column C starting at cell C4 carry across their formatting of all the text being in uppercase an example being BATTLE OF HASTINGS.
Could someone perhaps please show me how I would change the code so only the first letter of each word is in uppercase and the rest is in lowercase.
Kind regards
Chris
I am using the code below to copy and paste data between sheets.
Code:
Sub CopyMonuments()
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Dim rng1 As Range
Set ws1 = Sheets("Input")
Set ws2 = Sheets("Output")
On Error Resume Next
Set rng1 = ws1.Range(ws1.[b4], ws1.Cells(Rows.Count, "B").End(xlUp)).SpecialCells(xlConstants)
On Error GoTo 0
If rng1 Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Set rng2 = ws2.[c4]
rng1.Copy
rng2.PasteSpecial xlPasteValues
rng1.Offset(0, 7).Copy
rng2.Offset(0, 1).PasteSpecial xlPasteValues
rng1.Offset(0, 12).Copy
rng2.Offset(0, 2).PasteSpecial xlPasteValues
rng2.Offset(0, -1).Resize(rng1.Cells.Count, 1) = "Monument"
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
The problem I have is that the values copied in column C starting at cell C4 carry across their formatting of all the text being in uppercase an example being BATTLE OF HASTINGS.
Could someone perhaps please show me how I would change the code so only the first letter of each word is in uppercase and the rest is in lowercase.
Kind regards
Chris