Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-30-2013, 08:23 PM
AlexR AlexR is offline Show userform without losing document focus? Or other method to get a graphic to pop? Windows XP Show userform without losing document focus? Or other method to get a graphic to pop? Office 2007
Novice
Show userform without losing document focus? Or other method to get a graphic to pop?
 
Join Date: Mar 2013
Location: Eastern PA, USA
Posts: 8
AlexR is on a distinguished road
Default

Hi Greg,

I was triggering it with just:

Userform1.Show

I was unaware of the vbModeless option until now. (Or perhaps you meant in more detail what leads to the triggering of the userform?)

It doesn't really matter if the userform has focus or not as long as the end result is that the user can keep typing without interruption. So you're right that my method didn't return the focus to the document. Instead it captured the last keystroke and both used it to close the userform and returned it to the document. The end result was that the user would see the popup for a moment without having to do anything to close it.

It's interesting that your KeyPress suggestion doesn't give me the issue with the wonky ascii codes that KeyDown does. I wonder what's working differently there. But regardless, the vbModeless suggestion does what I want better than I thought it could be done. Ideally I'd like a transparent animation to pop up, but it seems such things are impossible in the context of VBA.
Reply With Quote
 

Tags
document focus, graphics, userform



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show userform without losing document focus? Or other method to get a graphic to pop? Losing charts in Word document sweetpotater Word 1 04-24-2012 04:46 AM
Show userform without losing document focus? Or other method to get a graphic to pop? How to link userform to another word document SaneMan Word VBA 5 10-14-2011 05:12 AM
Show userform without losing document focus? Or other method to get a graphic to pop? Setting focus to specific word document from UserForm SaneMan Word VBA 5 04-01-2011 03:11 PM
I have a Word 2007 document that only show 13 pages xeonix Word 0 07-06-2009 08:38 PM
Show userform without losing document focus? Or other method to get a graphic to pop? Graphic files do not appear in my document plt Drawing and Graphics 2 04-22-2009 09:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 PM.


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