Copy cell content to another cell after click an image!

Tiago Ferreira

New Member
Joined
Jan 12, 2013
Messages
22
Hi!

i need help creating a macro that will work in this specific way:



I have a green check picture at the end off 113 rows, every time i click in the green check picture off a row i want it to copy the value off a cell in the same row and then paste it to a range off row´s, let´s say S1 to S113

So, if i click on the green check off row 1, they will copy the contents off cell A1 and paste-it in a available cell in a range off cell´s from s1 to s113.

And iff i click on the green check off row 2, they will copy the content off cell A2 and paste it in a available cell in a range off cell´s from s1 to s113. and this way on...



The objective is this, i´m making a spreadsheet for the hotel where i work, and in the hotel we have 113 room´s, i need to have control off what room´s are available for the client, and how many is not.

So the idea is to have a spreadsheet with all room´s, and when i click on green check picture off a room, automatically will copy the number off that room and paste it in a place where will be listed every room´s that is ok or not ok.




When i right click on the green check picture i choose "assign macro", then what should i put in there to make this work for me?

thank´s in advance
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,951
Messages
5,834,547
Members
430,295
Latest member
amdis

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
Top