Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Code for locking windows

Hi,

Does anyone know the vb for disabling window resizing when
the excel window is in the screen but not maximised?

I have tried:

Application.Activewindow.Enableresize = False

But this doesn't lock the window?

Thanks

Dean
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code for locking windows

That command worked fine for me.

xl2000, windows 2000 Professional
--
Regards,
Tom Ogilvy

"Dean Knox" wrote in message
...
Hi,

Does anyone know the vb for disabling window resizing when
the excel window is in the screen but not maximised?

I have tried:

Application.Activewindow.Enableresize = False

But this doesn't lock the window?

Thanks

Dean



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Code for locking windows

It only locked the active window not the application
resize window that I need, any ideas?




-----Original Message-----
That command worked fine for me.

xl2000, windows 2000 Professional
--
Regards,
Tom Ogilvy

"Dean Knox" wrote in message
...
Hi,

Does anyone know the vb for disabling window resizing

when
the excel window is in the screen but not maximised?

I have tried:

Application.Activewindow.Enableresize = False

But this doesn't lock the window?

Thanks

Dean



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code for locking windows

I think you would have to use the windows API to do it - perhaps subclass
excel - I don't have any sample code for you, but you might look at

http://support.microsoft.com/support/?id=185733
HOWTO: Limit a Windows's Minimum and Maximum Size

I know that windows can be set to be resizeable or not - but I doubt you can
change the type of window Excel is (since excel probably manages that), so
you might have to use the subclassing approach in the above article.

--
Regards,
Tom Ogilvy

"Dean Knox" wrote in message
...
It only locked the active window not the application
resize window that I need, any ideas?




-----Original Message-----
That command worked fine for me.

xl2000, windows 2000 Professional
--
Regards,
Tom Ogilvy

"Dean Knox" wrote in message
...
Hi,

Does anyone know the vb for disabling window resizing

when
the excel window is in the screen but not maximised?

I have tried:

Application.Activewindow.Enableresize = False

But this doesn't lock the window?

Thanks

Dean



.



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
Windows Visible Property - Code Help Gerry O Excel Discussion (Misc queries) 2 September 6th 07 02:44 AM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Viewing Access Code in Windows 2000 Larry Bird Excel Discussion (Misc queries) 1 November 8th 05 06:23 PM
VBA Code Windows BillCPA Excel Discussion (Misc queries) 2 May 24th 05 04:04 PM
Locking Code In Individual Macros Carl Bowman Excel Discussion (Misc queries) 2 May 19th 05 06:05 PM


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