Width of specific text in pixels

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
I know I've seen this, a combobox that autoadjustes itself to the longest entry in there, but I don't remember where I saw that ! What I need is find out how "long" a text (In a specific font name, size and style) is, in pixels, so i can set the column width to that... any ideas ?
 
On 2002-08-25 09:48, Mark O'Brien wrote:
Just out of interest, do you any of you use Spy++ to get classnames ever?

Mark
No..Spy++ ? Where do you get this.
Could you let me know, as I've been doing it the hard way.....cheers
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Ivan, it comes with the installation of Visual Studio, common tools, just like the Package & Deployment Wizard, the API Viewer, and others.

Wow, that thins looks cool, have no idea what I'm seeing ! but, just started logging Excel's activity, and I got a whole bunch of information, events, and other stuff !
 
Upvote 0
Mark, Juan & Tom
Thanks for the heads up on the SPY++, I'm
having a look @ this now...VERY good and here I was creating my own program to do this.

I'll have fun with this...cheers Guys
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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