Sheet1
The result in the Sheet2 workbook that I need to achieve
Result copy from Sheet1 to Sheet2 as plain text
Here I came up with something like this:
And
I don't know how to finish it. Any idea from anyone? Who wants a 20-year birthday today?
Thank you in advance for all the help
Datum | I am very happy because I am | Years | years old |
31.3.2021 | 20 | ||
=CONCATENATE(A2;B1;C2;D1) |
44286 I am very happy because I am 20 years old |
The result in the Sheet2 workbook that I need to achieve
2021-03-31 I am very happy because I am 20 years old |
Here I came up with something like this:
VBA Code:
Sub CopyDatumSpecial()
' The code I have
' From Source
Sheets("Sheet1").Select
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
' To Destination
Sheets("Sheet2").Select
Range("C1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
' Add Formula CONCATENATE
Range("C4").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=CONCATENATE(R[-2]C,R[-3]C[1],R[-2]C[2],R[-3]C[3])"
End Sub
And
VBA Code:
Sub CopyDatumSpecial2()
' Here I came up with something like this. (
Dim RowCountDate As String
Dim Source As String
Dim Destin As Worksheet
Source.Worksheets("Sheet1").Range(Cells(1, "A"), Cells(RowCountDate, "A")).Copy
Destin.Worksheets("Sheet2").Cells(RowCountTrack, "C").NumberFormat = "yyyy-mm-dd"
Destin.Worksheets("Sheet2").Cells(RowCountTrack + 1, "C").NumberFormat = "yyyy-mm-dd"
End Sub
I don't know how to finish it. Any idea from anyone? Who wants a 20-year birthday today?
Thank you in advance for all the help