I have some VBA code in Excel to copy information from one sheet of a workbook to another sheet in the same workbook. All of the copy/paste code works except for 3 cells on the destination sheet and I can't figure out why. Here is a code snippet that includes a working section and a broken section.
'Works to copy A11 from "Job Entry" to A2 on "Work List"
Sheets("Job Entry").Select
Range("A11").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Work List").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Does not work to copy B11 from "Job Entry" to M2 on "Work List"
Sheets("Job Entry").Select
Range("B11").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Work List").Select
Range("M2").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The code that copies cell A11 from "Job Entry" to "Work List" works fine. However, the code that copies cell B11 from "Job Entry" to "Work List" does not. All of the cells involved use date values and they're all formatted to use the date format MM/DD/YY.
I've spent a decent amount of time trying to find a solution for this, but can't find anything to help with this specific predicament.