J
Janis
I recorded this macro and it works. I need to delete the top line on a
spreadsheet but the report date I need to save as a variable. I tried copy
and paste but you can't paste the copy value into the variable. So I can't
figure out how to get the copy selection into the variable.
tnx,
Private Sub deleteDateRow1()
'
Dim FrReptDate As Date
'
' Keyboard Shortcut: Option+Cmd+z
'
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Range("A1").Select
Selection.Copy
FrReptDate = Selection.Paste
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
End Sub
spreadsheet but the report date I need to save as a variable. I tried copy
and paste but you can't paste the copy value into the variable. So I can't
figure out how to get the copy selection into the variable.
tnx,
Private Sub deleteDateRow1()
'
Dim FrReptDate As Date
'
' Keyboard Shortcut: Option+Cmd+z
'
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Range("A1").Select
Selection.Copy
FrReptDate = Selection.Paste
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
End Sub