lianne
New Member
Hello, everyone.
I'm pretty new to VBA and I am trying to write some codes for our daily timekeeping sheet.
I have placed a formula on column A,B, and C to copy my Name, Date Today, and Shift Date to replicate whatever is on E7, H7, and J7 if there's and "end time" on Column E.
However, whenever VBA pastes it on the RawFile Sheet, it copies the formula on Column A even if there's no value in it leaving multiple blank rows when offset. I need to get rid of those blank rows everytime it pastes.
Any help will be greatly appreciated.
Here's the code I'm using.
Post Moved to VBA section by MOD
.
I'm pretty new to VBA and I am trying to write some codes for our daily timekeeping sheet.
I have placed a formula on column A,B, and C to copy my Name, Date Today, and Shift Date to replicate whatever is on E7, H7, and J7 if there's and "end time" on Column E.
However, whenever VBA pastes it on the RawFile Sheet, it copies the formula on Column A even if there's no value in it leaving multiple blank rows when offset. I need to get rid of those blank rows everytime it pastes.
Any help will be greatly appreciated.
Here's the code I'm using.
Code:
Sub Save()
Sheets("DAR").Select
Range("A9:J34").Select
'Application.CutCopyMode = False
Selection.Copy
Sheets("RawFile").Select
Cells(ActiveSheet.Rows.Count, "A").End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Post Moved to VBA section by MOD
.
Last edited by a moderator: