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

Event2020

Board Regular
Joined
Jan 6, 2011
Messages
107
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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

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