Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Show userform without it taking focus?
I'm using a modeless userform to display a running set of totals on my
spreadsheet. When I first bring it up using interface.Show, the userform takes focus, and users think that the spreadsheet has been locked. Really the cursor has just shifted to the userform, but it's very annoying. Does anyone know of a way programmatically to shift the focus back to the underlying spreadsheet? I've tried activating the sheet and selecting cells using VBA, but none of it returns the focus to the spreadsheet. TIA! Leah |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Show userform without it taking focus?
Sub ShowForm()
UserForm1.Show 0 AppActivate Application.Caption End Sub worked for me. -- Regards, Tom Ogilvy "leah" wrote in message m... I'm using a modeless userform to display a running set of totals on my spreadsheet. When I first bring it up using interface.Show, the userform takes focus, and users think that the spreadsheet has been locked. Really the cursor has just shifted to the userform, but it's very annoying. Does anyone know of a way programmatically to shift the focus back to the underlying spreadsheet? I've tried activating the sheet and selecting cells using VBA, but none of it returns the focus to the spreadsheet. TIA! Leah |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Show userform without it taking focus?
That worked! Thanks so much.
Leah *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Focus on Control before UserForm(s) pop up | Excel Programming | |||
Taking focus off a Control Checkbox | Excel Programming | |||
UserForm Loss Focus | Excel Programming | |||
Must be a way to force focus back to sheet instead of UserForm - isn't there? | Excel Programming | |||
Simulating the Format Painter, Selection.Select, and taking focus | Excel Programming |