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

:ROFLMAO:
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,216,068
Messages
6,128,592
Members
449,460
Latest member
jgharbawi

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