Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Matching multiple userform height and widths after resizing

I have added max and min buttons on my userforms and I would like to
make the next userform the same dimensions as the previous form if it
was maximized.
Please help!
thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Matching multiple userform height and widths after resizing

If you aare using VBA userform, go to VBAProject and right click the
userform. You can import and export userforms.

"melissa" wrote:

I have added max and min buttons on my userforms and I would like to
make the next userform the same dimensions as the previous form if it
was maximized.
Please help!
thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Matching multiple userform height and widths after resizing

On Aug 21, 11:11 am, melissa wrote:
I have added max and min buttons on my userforms and I would like to
make the next userform the same dimensions as the previous form if it
was maximized.
Please help!
thanks



i already have the userforms set up. after completing one form, it
sends you to a second form. If the first form was maximized, I would
like the next form to automatically have the same height and width as
the maximized form.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Matching multiple userform height and widths after resizing

Not sure what parameters you arre looking for. Below code modifes some of
the windows parameters. You can activate one window, read the values, then
set 2nd window witth same values.

Application Window is the excel window. Active window is the windows inside
the Excel window. If you havve more than one workbook open they both may be
insdie the same excel window.


Sub Macro1()
'
' Macro1 Macro
' Macro recorded 8/22/2007
'

'
Application.WindowState = xlMaximized
Application.WindowState = xlNormal

Application.Width = 200
Application.Height = 150


ActiveWindow.WindowState = xlMaximized
ActiveWindow.WindowState = xlNormal

ActiveWindow.Width = 600
ActiveWindow.Height = 400

End Sub


"Melissa" wrote:

On Aug 21, 11:11 am, melissa wrote:
I have added max and min buttons on my userforms and I would like to
make the next userform the same dimensions as the previous form if it
was maximized.
Please help!
thanks



i already have the userforms set up. after completing one form, it
sends you to a second form. If the first form was maximized, I would
like the next form to automatically have the same height and width as
the maximized form.


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 do I stop Excel from automatically resizing my row height? Geerdad Excel Worksheet Functions 0 April 9th 10 04:40 PM
auto adjust column widths and row height DebC Excel Discussion (Misc queries) 1 November 24th 09 03:17 PM
Resizing row height to dynamically fit height of text box Jon Excel Discussion (Misc queries) 1 August 8th 05 01:37 PM
resizing row height automatically? Gumby Excel Discussion (Misc queries) 2 July 11th 05 04:13 PM
default row height and column widths [email protected] New Users to Excel 1 January 17th 05 03:32 PM


All times are GMT +1. The time now is 10:19 AM.

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"