Creating floor plan, duplicating shapes

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
I once used a document which I think was created on excel which was like a weekly planner but had shapes/icons listed in a key. You could drag and drop these icons in to the planner as much as you needed without it affecting the key.

I am wondering if anyone can shed some light on how this was done? If it was in fact done on excel.

I know I could just copy and paste icons I create, but would much prefer this technique.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here is a very simple macro so that you can see that it is easily possible within Excel
(could modify later eg to duplicate nominated shapes or give user option to choose backgound colour etc...)

Insert VBA in a new standard module like this ...
- go to VBA window with {ALT}{F11}
- Inset Module with {ALT} I M
- paste code below into that window
- close VBA window to go back to Excel
Code:
Sub Click_On_Shape()
    With ActiveSheet
        .Shapes(Application.Caller).Copy
        .Paste
    End With
End Sub
Test like this ...
- insert a shape \ Right-Click on it \ Assign Macro \ select Click_On_Shape \ OK

- right-click on the shape \ select Format Shape to modify it as you want
- click on any cell to deselect the shape
- left-click on the shape for duplicated shape
- drag new shape to another location
- insert other shapes and assign each one to macro Click_On_Shape
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,804
Messages
6,121,652
Members
449,045
Latest member
Marcus05

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