Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Fix Column width in spreadsheet control?!

I finally got data showing on my userform with a spreadsheet control!

Now the only thing I need to do is to figure out how to fix the columns
widths in the control to autofit.

I'd appreciate any help.


Thanks,

Toiny
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Fix Column width in spreadsheet control?!

I believe the default for ColumnWidths in the ListBox and the ComboBox is
for autofit, which will set the column width to the longest string in the
column, up to 72 points. If you want more spacing between columns then you
will have to set the width of the columns a little wider than the autofit.
You can set the ColumnWidths in the properties window while in the VB
editor, or using code per VBA help file under "ColumnWidths". Note the "s",
which differentiates between the worksheet ColumnWidth.


"Webtechie" wrote in message
...
I finally got data showing on my userform with a spreadsheet control!

Now the only thing I need to do is to figure out how to fix the columns
widths in the control to autofit.

I'd appreciate any help.


Thanks,

Toiny



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Fix Column width in spreadsheet control?!

I prefer the combination of backups and recovery services, have you ever heard about the service of <a href="http://www.recoverytoolbox.com/microsoft_sql_server_database_recovery_download.ht ml"sql server 2005 in recovery</a, provided by Recovery Toolbox for SQL Server? Indeed, it is not possible to write a separate article for all database-related issues

---
frmsrcurl: http://msgroups.net/microsoft.public...dsheet-control
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change column width of the default start-up spreadsheet? Jeter Setting up and Configuration of Excel 3 December 31st 20 02:23 PM
how to export a spreadsheet with column width over 255 maximum excelallows? [email protected] Excel Discussion (Misc queries) 4 February 17th 09 10:22 PM
Spreadsheet column width from html sumithar Excel Discussion (Misc queries) 2 June 23rd 08 06:26 PM
Spreadsheet column width from html sumithar Excel Programming 2 June 23rd 08 06:26 PM
Create a macro which takes a column name and width and sets the column width to what it should be Ag Excel Programming 4 September 29th 07 11:29 PM


All times are GMT +1. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"