Single Image Selection / Shortcut Key (Mac Excel 2011)

chendric3

New Member
Joined
Apr 14, 2017
Messages
1
Single Image Selection / Shortcut Key (Mac Excel 2011)

Hi -

I’m using Excel for Mac 2011.

I wrote a macro to scale, rotate, cut, and paste the image that I drag and drop from the finder:

Sub rotatescale2()
'
' rotatescale2 Macro
'
' Keyboard Shortcut: Option+Cmd+y
'
Selection.ShapeRange.IncrementRotation 90
Selection.ShapeRange.Height = 54
Selection.Cut
ActiveSheet.Paste
End Sub


If I select ONE image that I have dragged and dropped onto my worksheet, pressing ‘Option+Cmd+y’ does NOTHING.

If I select more than one image that I have dragged and dropped onto my worksheet, pressing ‘Option+Cmd+y’ runs the rotatescale2 macro properly.

If I manually run the macro on one selected image, it functions properly.

I have tried multiple shortcut keys without any success.

Can you tell me how to get my macro to work on a SINGLE SELECTED IMAGE?

Thanks so much!

Charles

:rofl:
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,157
Messages
6,170,419
Members
452,325
Latest member
BlahQz

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