VBA Copy paste Images from one cell to another cell on a different sheet

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

i have vba code to copy paste Images from one cell to another cell on a different sheet..
i want how to modify that code with criteria:
1. my destination or placing photo in Sheet1 cell N36:O36 down. My database photo in sheets "hitung1, hitung2, hitung3....photo always consistent in cell D9:E9.
2. how to copy paste photo from sheet "hitung1,hitung2, etc...to Sheet1 in range N36:O36 down..
here this code :
VBA Code:
Sub copyimage2()
       'Activate the sheet 1
    ThisWorkbook.Sheets(1).Activate
   
    'Select Range ...
    ThisWorkbook.Sheets(1).Range(".....").Select
   
    'Copy the image and all other values
    Selection.Copy
   
    'Activate the sheet 2
    ThisWorkbook.Sheets(2).Activate
   
    'Select the target cell ...
    ThisWorkbook.Sheets(2).Range(".......").Select
   
    'Paste the data
    ThisWorkbook.Sheets(2).Paste
   
    End Sub

any help, greatly appreciated..
.sst
 

Attachments

  • database foto.png
    database foto.png
    38.4 KB · Views: 10
  • DESTINATION FOTO.png
    DESTINATION FOTO.png
    45.2 KB · Views: 10

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Cross posted
How many times do you have to be told?
Please supply all links.
 
Upvote 0
Please supply ALL links.
 
Upvote 0
Thank you. In future please ensure you supply ALL links, without having to be told.
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top