Created
March 13, 2016 14:03
-
-
Save erajanraja24/71146557b00fa62c3628 to your computer and use it in GitHub Desktop.
Copy paste Images from one cell to another cell on different sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub copyimage2() | |
'Activate the sheet 1 | |
ThisWorkbook.Sheets(1).Activate | |
'Select Range A1 | |
ThisWorkbook.Sheets(1).Range("A1").Select | |
'Copy the image and all other values | |
Selection.Copy | |
'Activate the sheet 2 | |
ThisWorkbook.Sheets(2).Activate | |
'Select the target cell D6 | |
ThisWorkbook.Sheets(2).Range("D6").Select | |
'Paste the data | |
ThisWorkbook.Sheets(2).Paste | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment