Hi
I'm trying to create a macro to copy and paste values in C2-45 into another spreadsheet in the next available column.
At the moment Column A has our description, and then column B would have the first dates data. Column C should have a sum to compare the difference from today to yesterday to highlight increases/decreases. And then this pattern continues on, D data entry and E difference formula.
Right now we download a report which is imported and formulas in column C of the Data Entry tab to calculate this. I want a create a macro button just to enter this data into the next free column started at B2. (Row 1 has headers). Is this possible? I've tried multiple different scenarios but I cant get it right.
This is what I have so far:
Sub DataEntry()
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Price Band Integrity 2019").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 1).Select
End Sub
I'm trying to create a macro to copy and paste values in C2-45 into another spreadsheet in the next available column.
At the moment Column A has our description, and then column B would have the first dates data. Column C should have a sum to compare the difference from today to yesterday to highlight increases/decreases. And then this pattern continues on, D data entry and E difference formula.
Right now we download a report which is imported and formulas in column C of the Data Entry tab to calculate this. I want a create a macro button just to enter this data into the next free column started at B2. (Row 1 has headers). Is this possible? I've tried multiple different scenarios but I cant get it right.
This is what I have so far:
Sub DataEntry()
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Price Band Integrity 2019").Select
Range("B2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 1).Select
End Sub