drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and thanks in advance!
This Macro is just for this eg, but the macro shows my problem
How Can I solve this?
This Macro is just a draft of a huge macro I am using this is why I have decided to show just the problem briefly
ps:
Please I do know I can use:
and:
How can I solve this? Thanks again
This Macro is just for this eg, but the macro shows my problem
Code:
Sub AAAa()
Dim aDates(1 To 3)
'The Formatting of the selection is = [$-en-GB]dd/mmm/aaaa;@
aDates(1) = Selection.Cells(1) '= "01/11/2018" = 01/Nov/2018
aDates(2) = Selection.Cells(2) '= "23/11/2018" = 23/Nov/2018
aDates(3) = Selection.Cells(3) '= "05-04/2019" = 05/Apr/2019
'The Formatting of the "L1:L3" is = [$-en-GB]dd/mmm/aaaa;@
Range("L1:L3") = Application.WorksheetFunction.Transpose(aDates)
'L1:L3 shows:
'L1 = 11/Jan/2018
'L2 = 23/11/2018
'L3 = 04/May/2019
End Sub
How Can I solve this?
This Macro is just a draft of a huge macro I am using this is why I have decided to show just the problem briefly
ps:
Please I do know I can use:
- range("L1")= Selection.Cells(1)
- range("L2")= Selection.Cells(2)
- range("L3")= Selection.Cells(3)
and:
How can I solve this? Thanks again