Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Scaling controls

More problems.
How can i resize all the controls on a userform to accomodate 3 different
screen resolutions. I have tried cycling through controls and scaling like
so:

For i = 1 To 5
Controls("combobox" & i).Height = Controls("combobox" & i).Height * 0.78125
Controls("combobox" & i).Width = Controls("combobox" & i).Width * 0.78125
Controls("combobox" & i).Left = Controls("combobox" & i).Left * 0.78125
Controls("combobox" & i).Top = Controls("combobox" & i).Top * 0.78125
Controls("combobox" & i).Font.Size = 9
Next i

But it's not exactly precise, things go to pot. is there something i can do
to get better scaling, I have tried something years back in VB4 using twips,
a brief encounter, can i make VBA use twips?

Any help would be apprecaited, Thanks

Chris A



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
axis scaling RJDII Charts and Charting in Excel 1 July 17th 08 10:07 PM
Pie Charts - Scaling MK Charts and Charting in Excel 4 June 4th 08 08:19 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
Dynamic Scaling Cody Charts and Charting in Excel 1 July 11th 05 10:58 PM
Chart Scaling asphalt Excel Programming 1 September 18th 03 10:50 PM


All times are GMT +1. The time now is 08:35 PM.

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"