g48dd
Board Regular
- Joined
- Jan 12, 2009
- Messages
- 101
Excel 2003: I have this:
its from a paste special macro, I need to put it with the following macro. This macro will copy and paste acording to the date. It works great but I need it to paste special just the values. Here is the code:
Thank you ken
Code:
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Code:
Sub MoveDayOfWeek()
Dim DayOfWeek As String
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
DayOfWeek = Format(CDate(Date), "dddd")
Select Case DayOfWeek
Case "Monday"
Range("A1:A" & LR).Cut Destination:=Range("B1")
Case "Tuesday"
Range("A1:A" & LR).Cut Destination:=Range("C1")
Case "Wednesday"
Range("A1:A" & LR).Cut Destination:=Range("D1")
Case "Thursday"
Range("A1:A" & LR).Cut Destination:=Range("E1")
Case "Friday"
Range("A1:A" & LR).Cut Destination:=Range("F1")
Case "Saturday"
Range("A1:A" & LR).Cut Destination:=Range("G1")
Case "Sunday"
Range("A1:A" & LR).Cut Destination:=Range("H1")
End Select
Application.CutCopyMode = False
End Sub
Thank you ken