Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default How to minimize a userform!

i'm not able to set 'minimize' & 'maximize' - window property on
userforms. Is it possible to do that on VB excel or not?

in particular i have an userform "working" with data inside a
worksheet.

if i change something inside userform i want to verify what's changed
in related worksheet too....

but there's no way to minimize the userform "activating" the sheet
selection.

so i have to close (userform.hide) the userform, to
"reactivate" the worksheet.

What to do ??

thanks in advance!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default How to minimize a userform!

You could set the form property
ShowModal = False
This will allow you to activate the worksheet and move around it.

You could incorporate an event in the form that will return the cell(s)
value(s) to the form. I sometimes do this by having the form return a value
to a label on the form.

You could have the form event scroll the worksheet and place the cell(s) in
question to a viewable position.

--
steveB

Remove "AYN" from email to respond
"furbiuzzu" wrote in message
ups.com...
i'm not able to set 'minimize' & 'maximize' - window property on
userforms. Is it possible to do that on VB excel or not?

in particular i have an userform "working" with data inside a
worksheet.

if i change something inside userform i want to verify what's changed
in related worksheet too....

but there's no way to minimize the userform "activating" the sheet
selection.

so i have to close (userform.hide) the userform, to
"reactivate" the worksheet.

What to do ??

thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to minimize a userform!


Hi

Try the following;

Dim dWidth As Double

Private Sub ToggleButton1_Click()
If ToggleButton1.Value = True Then
Me.Height = Me.Height * 0.25
Else
Me.Height = dWidth
End If
End Sub

Private Sub UserForm_Initialize()
dWidth = Me.Height
End Sub


Lenny


--
Lenny_821
------------------------------------------------------------------------
Lenny_821's Profile: http://www.excelforum.com/member.php...o&userid=15179
View this thread: http://www.excelforum.com/showthread...hreadid=379394

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to minimize a userform!

Hi Furbiuzzu,

See the following post from Michel Pierron:

http://tinyurl.com/deqwf

---
Regards,
Norman



"furbiuzzu" wrote in message
ups.com...
i'm not able to set 'minimize' & 'maximize' - window property on
userforms. Is it possible to do that on VB excel or not?

in particular i have an userform "working" with data inside a
worksheet.

if i change something inside userform i want to verify what's changed
in related worksheet too....

but there's no way to minimize the userform "activating" the sheet
selection.

so i have to close (userform.hide) the userform, to
"reactivate" the worksheet.

What to do ??

thanks in advance!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default How to minimize a userform!

It may be a bit too much trouble for your purpose, but a good option is to
use a VB6 form.
They are much more like normal windows, so can minimize/maximize, have copy
and paste in
textboxes, have a listboxes that can scroll with the mouse wheel etc, and
all this without any API calls.
You can pick up a copy of VB6 Pro from EBay for about £200

RBS

"furbiuzzu" wrote in message
ups.com...
i'm not able to set 'minimize' & 'maximize' - window property on
userforms. Is it possible to do that on VB excel or not?

in particular i have an userform "working" with data inside a
worksheet.

if i change something inside userform i want to verify what's changed
in related worksheet too....

but there's no way to minimize the userform "activating" the sheet
selection.

so i have to close (userform.hide) the userform, to
"reactivate" the worksheet.

What to do ??

thanks in advance!


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
Minimize button on userform? Bob Excel Discussion (Misc queries) 3 June 13th 09 11:01 PM
Minimize UserForm Howard31 Excel Discussion (Misc queries) 0 December 17th 08 09:10 PM
Minimize a UserForm SailFL Excel Discussion (Misc queries) 1 August 21st 05 12:45 AM
VBA userform with minimize button RB Smissaert Excel Programming 0 May 10th 04 11:50 PM
COM add-in userform minimize button RB Smissaert Excel Programming 2 May 9th 04 01:28 PM


All times are GMT +1. The time now is 06:06 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"