Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2019, 09:04 PM
matapagi2019 matapagi2019 is offline How to make userform and active document stand side by side Windows XP How to make userform and active document stand side by side Office 2007
Novice
How to make userform and active document stand side by side
 
Join Date: Mar 2019
Posts: 12
matapagi2019 is on a distinguished road
Default How to make userform and active document stand side by side


Hi, erveryone..
I am creating a project with MS Word VBA consisting of an active document and a userform.
I want the ducument and userform to stand aside from each other.
The problem is, If I set the modal userform property = true, then the document cannot be edited.
And if the modal property = false, then the document when zoomed in can be covered under userform. I want both to be visible and active.
I want both of them to be restricted to each area such as two splitted windows in common cases.

Is there any VBA code to make it ?!

For all your assistance is greatly appreciated.
Thanks.
Reply With Quote
  #2  
Old 03-12-2019, 06:09 PM
jjfreedman jjfreedman is offline How to make userform and active document stand side by side Windows 10 How to make userform and active document stand side by side Office 2016
Advanced Beginner
 
Join Date: May 2012
Location: https://jay-freedman.info
Posts: 39
jjfreedman is on a distinguished road
Default How to make userform and active document stand side by side

Your code can set the .Top, .Left, .Width, and .Height properties of both the Word window and the userform to the desired values. (You'll want to get the screen size from System.HorizontalResolution and System.VerticalResolution and use the PixelsToPoints function to convert them to points for use in the window and userform values.)


What you cannot do is prevent the user from dragging the sides of the Word window. However, zooming won't change the window size, it just changes the sizes of the objects inside the window.
Reply With Quote
Reply

Tags
document, userform, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thumbnail/Navigation/slide pane on wrong side (right side vs Left) Pirate Capttain PowerPoint 4 12-13-2018 12:36 PM
How to make userform and active document stand side by side How to install MS Access 2010 and MS Office 2016 side by side abdan Office 1 04-09-2018 02:55 AM
How to make userform and active document stand side by side Open different (additional) document in same window - view two documents side-by side in one window MANOHAR Word 5 11-14-2017 03:06 AM
How to make userform and active document stand side by side How do I put 2 lists side by side and find out what the first list doesn't have from the second? kshlomo Word 5 01-27-2017 05:04 PM
View side-by-side not working in MS Word 2016 Professional Donna P Word 0 01-06-2017 10:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft