Hi all.
I Have a weekly timesheet that I have automated using vba.
What happens is that from a master timesheet I copy the current worksheet into a new workbook for emailing.
When I have the new sheet in the new workbook I want to copy & paste values that in the master timesheet rely on a vlookup in a sheet that as allocation codes of hours. I have done this to take out unwanted detail in the emailed timesheet.
Here is the code that I am using to try copy & paste values that is not working. Everything else does what it is supposed to do.
The code to delete values of unwanted detail works fine.
I Have a weekly timesheet that I have automated using vba.
What happens is that from a master timesheet I copy the current worksheet into a new workbook for emailing.
When I have the new sheet in the new workbook I want to copy & paste values that in the master timesheet rely on a vlookup in a sheet that as allocation codes of hours. I have done this to take out unwanted detail in the emailed timesheet.
Here is the code that I am using to try copy & paste values that is not working. Everything else does what it is supposed to do.
Code:
'Copy and paste values as vlookup relies on master timesheet.
[COLOR=#0000ff][B]With Range("J19:J69").Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False[/B][/COLOR]
End With
'Deletes unwanted detail
Range("L19:L69").Value = ""
The code to delete values of unwanted detail works fine.