Insert object - What do the numbers between ( ) do or mean?

Event2020

Board Regular
Joined
Jan 6, 2011
Messages
122
Office Version
  1. 2019
Platform
  1. Windows
This is related to a different question I asked about getting exact position on a sheet of a option box but I have made it a separate question in case it can be applied to other objects and therefore perhaps help others.

Admin please delete if you feel this question is not appropriate.

I have a macro that creates a option box on a worksheet and I have noticed that there is a range of numbers placed inbetween brackets.

Code:
ActiveSheet.OptionButtons.Add(131.25, 558.75, 38.25, 17.25).Select

Does anyone know what the numbers mean or do?

If i remove them so it looks like this

Code:
ActiveSheet.OptionButtons.Add().Select

then run the macro it produces the VBA error argument not optional so the numbers must be doing something?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello Event2020,

They are the position arguments: Left, Top, Width, and Height. These control the placement of the object on the worksheet using the upper left corner as the start position.
 
Upvote 0
Hello Event2020,

They are the position arguments: Left, Top, Width, and Height. These control the placement of the object on the worksheet using the upper left corner as the start position.

Hi Leith

Thats brilliant, I was hoping that was what they were.

Thanks a lot
 
Upvote 0
Hello Event202,

You're welcome. Glad I could shed some light on the mystery numbers.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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