Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Form, Dual Monitors

I am using Excel 2007 on Windows XP with dual monitors. I have a work
book that is to be shared that has a form that I built. For some
reason
when the workbook is open on one screen the form will open on the
other monitor. Any ideas why and how to control/ prevent this? Also,
I would like to prevent users from using Alt+F8 to run macros and from
using Alt+F11 to see the VBE.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Form, Dual Monitors

On 25 Ago, 01:02, Slim Slender wrote:
I am using Excel 2007 on Windows XP with dual monitors. I have a work
book that is to be shared that has a form that I built. For some
reason
when the workbook is open on one screen the form will open on the
other monitor. Any ideas why and how to control/ prevent this?


Try this:

Private Sub UserForm_Initialize()
With Me
.StartUpPosition = 3
.Left = (Application.ActiveWindow.Width - .Width) / 2
.Top = (Application.ActiveWindow.Height) / 2
End With
End Sub


Tnk for feedback.

Bye!
Scossa
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
Viewing with dual monitors IA CPA[_2_] Excel Discussion (Misc queries) 2 January 5th 10 08:05 PM
Dual monitors GerryK Excel Discussion (Misc queries) 10 July 9th 08 09:58 PM
how do I use excel on dual monitors VDU Excel Discussion (Misc queries) 1 October 26th 06 01:51 PM
Coding For Dual Monitors Eloy Excel Discussion (Misc queries) 1 February 28th 06 06:35 PM
Dual monitors adwilson Excel Discussion (Misc queries) 2 March 25th 05 06:15 PM


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