centimeterstopoints => Run-time error 429

Jaymond Flurrie

Well-known Member
Joined
Sep 22, 2008
Messages
921
Office Version
  1. 365
Platform
  1. Windows
I thought to resize my chart by VBA code so I recorded the process. The result was that it gave me percentages of the original. Then I decided to try using size from format chart area - it shows centimeters. Much better. Now I wanted to input it in VBA and it seems like VBA wants points, not centimeters. I just read from Word VBA book, that at least Word 2007 supports function "centimeterstopoints" which should actually be really simple division function - input centimeters, get points as the result. I tried that in Excel 2010 VBA immediate window with a very simple ?centimeterstopoints(10) command It should return 283.5 as the answer. What it actually returned? "Run-time error '429': ActiveX component can't create object"

Now sure, I can continue just by using a magic number of 28.35 in my code, but I'd be interested to know why the result is an error.
 

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.

Forum statistics

Threads
1,224,602
Messages
6,179,841
Members
452,948
Latest member
UsmanAli786

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