Hi I currently have this code
Sub PostToRegister()
'Copies Invoice data to the Invoice Register
Dim WS1 As Worksheet
Dim WS2 As Worksheet
Set WS1 = Worksheets("Invoice")
Set WS2 = Worksheets("Summary")
'Figures out which row is the next row
nextrow = WS2.Cells(Rows.Count, 2).End(xlUp).Row + 1
'Write the Information to the Register
WS2.Cells(nextrow, 2).Resize(1, 6).Value = Array(WS1.Range("B9"), WS1.Range("E8"), WS1.Range("E9"), Range("InvBC"), Range("InvASC"), Range("InvTotal"))
End Sub
I now have the need to split the text in Cell "B9" when its extracted and paste it as 2 separate cells. It contains a forename and a surname like this "Jo Bloggs" or this "Jo-jo Bloggs" the delimitator is a " "(space)
thank you
Sub PostToRegister()
'Copies Invoice data to the Invoice Register
Dim WS1 As Worksheet
Dim WS2 As Worksheet
Set WS1 = Worksheets("Invoice")
Set WS2 = Worksheets("Summary")
'Figures out which row is the next row
nextrow = WS2.Cells(Rows.Count, 2).End(xlUp).Row + 1
'Write the Information to the Register
WS2.Cells(nextrow, 2).Resize(1, 6).Value = Array(WS1.Range("B9"), WS1.Range("E8"), WS1.Range("E9"), Range("InvBC"), Range("InvASC"), Range("InvTotal"))
End Sub
I now have the need to split the text in Cell "B9" when its extracted and paste it as 2 separate cells. It contains a forename and a surname like this "Jo Bloggs" or this "Jo-jo Bloggs" the delimitator is a " "(space)
thank you