I recorded a macro to copy and paste vales from one worksheet to another (in the same workbook) then to copy formats from the column immediately to the left of the one that was just pasted. The Macro Recorded used StandardWidth and GapWidth in the code, which I wasn't expecting and haven't seen before.
"FormA_CA" is the worksheet I'm copying data from, and "2020 fuel rates" is the worksheet I"m copying to. Neither of these worksheets are supposed to be chart sheets nor do they contain charts. Is it possible that they are incorrectly labeled as chart sheets? Can someone please help me understand what's going on?
Thanks,
David
Recorded code below:
Sub CopyVal
'
' CopyVal Macro
'
'
StandardWidth("FormA_CA").Select
Range("B3:B16").Select
.
StandardWidth("2020 fuel rates").Select
. GapWidth := xlPasteValuesAndNumberFormats, := xlNone, := FALSE, := FALSE
Range("H5:H18").Select
Application. = FALSE
.
Range("I5").Select
. GapWidth := xlPasteFormats, := xlNone, := FALSE, := FALSE
StandardWidth("Inputs").Select
End Sub
"FormA_CA" is the worksheet I'm copying data from, and "2020 fuel rates" is the worksheet I"m copying to. Neither of these worksheets are supposed to be chart sheets nor do they contain charts. Is it possible that they are incorrectly labeled as chart sheets? Can someone please help me understand what's going on?
Thanks,
David
Recorded code below:
Sub CopyVal
'
' CopyVal Macro
'
'
StandardWidth("FormA_CA").Select
Range("B3:B16").Select
.
StandardWidth("2020 fuel rates").Select
. GapWidth := xlPasteValuesAndNumberFormats, := xlNone, := FALSE, := FALSE
Range("H5:H18").Select
Application. = FALSE
.
Range("I5").Select
. GapWidth := xlPasteFormats, := xlNone, := FALSE, := FALSE
StandardWidth("Inputs").Select
End Sub