Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Setting width in pixel in Excel

Hi all

I am trying to set the width of coloumns to 16 pixels. I know I cannot
set that directly, so in stead I try to set the columnwidth, and
adjust it by reading the width.
Result: A is alway 0 - hidden :-) and the following C E etc are 22
pixels, 1.57 chars.

What do I do wrong?

WBR
Sonnich

for($j=0;$j<$h;$j++)
{
$WB-Sheets(1)-Columns($j*2+1)-ColumnWidth=1;
while($WB-Sheets(1)-Columns($j*2+1)-Width < 16)
$WB-Sheets(1)-Columns($j*2+1)-ColumnWidth =
$WB-Sheets(1)-Columns($j*2+1)-ColumnWidth + 0.1;
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
Setting column width to specific row in Excel doc ??? Thanks! Setting column width to specific row Excel Discussion (Misc queries) 2 July 8th 09 02:07 AM
How to initialize the column width from pixels. Pixel to Char conversion [email protected] Excel Programming 0 April 19th 06 08:37 PM
How to initialize the column width from pixels. Pixel to Char conversion [email protected] Excel Programming 0 April 19th 06 07:47 PM
Open JPG and determine pixel width in VB? Joe HM Excel Programming 5 March 25th 05 04:43 PM
with same font and pixel number different column width Christian Setting up and Configuration of Excel 0 February 1st 05 04:41 PM


All times are GMT +1. The time now is 02:44 PM.

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

About Us

"It's about Microsoft Excel"