How can I do a ctrl + shift + down in excel vba? I also wanted to know to then paste that as special values. Here is the code I currently have:
Sub CopyCol() Sheets("Sheet1").Range("B2").End(xlDown).Select.Copy Sheets("Sheet2").Range("B14").PasteSpecial xlPasteValues End Sub I am trying to copy everything in column B but not the whole column itself. For example, if the entries end at row 100 it should select cells B2 to B100 in the same way that ctrl+shift+down works.
After the cells are selected, I want to copy them and paste them as values in Sheet2 at cell B14. I know that putting .Select after (xlDown) would help me do that, but then I can't copy the cells. Also, pasting into the other sheet doesn't work either.
[range you want to fill] = [range whose values you want to copy], orSheets("Sheet2").Range("B14").Value = Sheets("Sheet1").Range("B2").Value