lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi I want to copy a cell then paste it somewhere. After review this website https://stackoverflow.com/questions/18968856/vba-paste-range I came with the code below.
My question, what does xlPasteAll means? and also can I just after copying a cell paste it into a cell that i will select with a mouse? Thank you so much
+++++++++
Sub copycell()
ThisWorkbook.Sheets(1).Cells(2, 2).Copy
End Sub
Sub pastecell()
Cells(1, 1).PasteSpecial xlPasteAll
End Sub
My question, what does xlPasteAll means? and also can I just after copying a cell paste it into a cell that i will select with a mouse? Thank you so much
+++++++++
Sub copycell()
ThisWorkbook.Sheets(1).Cells(2, 2).Copy
End Sub
Sub pastecell()
Cells(1, 1).PasteSpecial xlPasteAll
End Sub