ExcelLover7
New Member
- Joined
- Mar 30, 2011
- Messages
- 2
Hi,
I know this is a topic that has been covered many times in various forums on this site, but after trying just about everything I'm capable of, I'm still struggling and would be very grateful for some help on this.
Basically, I have a floating userform that I like to have permanently running in Excel. It has various number/date formatting buttons and other useful macros I've created in the past.
The userform is modeless, and when I open the userform in Excel it nicely appears as an unselected window ontop of Excel. The problem occurs when I then move to Outlook or another application and then flick back again to Excel. When I do this, the userform takes precedence and is selected, rather than the worksheet. This becomes a real pain when flicking between 2 Excel workbooks, especially when copying and pasting between 2 sheets, as I have to 'click' onto the sheet to take focus off the userform.
I've tried various things like...
Private Sub Workbook_WindowActivate(ByVal Wn As Window)
AppActivate "Microsoft Excel"
...in the 'ThisWorkbook' sheet in the userform, but no joy.
My knowledge of VB is ok, but nowhere near as advanced as I'd like it to be, so replies may have to be in simple language if possible!
Any help that can be given on this is much appreciated.
I know this is a topic that has been covered many times in various forums on this site, but after trying just about everything I'm capable of, I'm still struggling and would be very grateful for some help on this.
Basically, I have a floating userform that I like to have permanently running in Excel. It has various number/date formatting buttons and other useful macros I've created in the past.
The userform is modeless, and when I open the userform in Excel it nicely appears as an unselected window ontop of Excel. The problem occurs when I then move to Outlook or another application and then flick back again to Excel. When I do this, the userform takes precedence and is selected, rather than the worksheet. This becomes a real pain when flicking between 2 Excel workbooks, especially when copying and pasting between 2 sheets, as I have to 'click' onto the sheet to take focus off the userform.
I've tried various things like...
Private Sub Workbook_WindowActivate(ByVal Wn As Window)
AppActivate "Microsoft Excel"
...in the 'ThisWorkbook' sheet in the userform, but no joy.
My knowledge of VB is ok, but nowhere near as advanced as I'd like it to be, so replies may have to be in simple language if possible!
Any help that can be given on this is much appreciated.