Hi,
Im currently using With / End With statements to apply formulas or link in data via a named range.
What I want to be able to do is change the property of what I'm linking in to be in date format.
For example I have the code
Set FiscalYrPrd = Range("AG7:AH" & .Range("AA" & .Rows.Count).End(xlUp).Row)
With FiscalYrPrd
.Formula = "=C7"
.Value = .Value
End With
my understanding if that your changing the property of the variable to be a formula and then a value, therefore is it possible to change the format property of the range so its in date format (dd/mm/yy)?
Any help would be greatly appreciated!
In addition - same request but in numerical format with zero d.p?
Many thanks in advance.
Rgd,
SPiercy
Im currently using With / End With statements to apply formulas or link in data via a named range.
What I want to be able to do is change the property of what I'm linking in to be in date format.
For example I have the code
Set FiscalYrPrd = Range("AG7:AH" & .Range("AA" & .Rows.Count).End(xlUp).Row)
With FiscalYrPrd
.Formula = "=C7"
.Value = .Value
End With
my understanding if that your changing the property of the variable to be a formula and then a value, therefore is it possible to change the format property of the range so its in date format (dd/mm/yy)?
Any help would be greatly appreciated!
In addition - same request but in numerical format with zero d.p?
Many thanks in advance.
Rgd,
SPiercy