Size and position of shape is not what I set it to?

Jonas JH

New Member
Joined
Jan 5, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a problem placing a shape in the middle of a cell. I have found out, that it is because the shape does not get the size OR the position that I give it in the VBA code. Any suggestions? The shape is a picture.
See screenshot attached.
 

Attachments

  • Shape.png
    Shape.png
    16.9 KB · Views: 6

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I just realized that I do not have the problem if Excel is running on the screen of my laptop. The problem is only there if Excel is running on my extra screen (a Dell screen). That does not really solve the problem since I am making a program to be distributed to my colleagues. And I don’t know if it will work for them then. So any solutions will still be highly appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,447
Members
449,100
Latest member
sktz

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