PC Review


Reply
Thread Tools Rate Thread

Change Cursor Image if Workbook is not the Active Window

 
 
RyanH
Guest
Posts: n/a
 
      12th Sep 2008
I have a particular worksheet in a workbook, where I want the cursor to equal
xlNorthWestArrow. The problem occurs when I go to the VBE the cursor remains
as a arrow, but I need it to go back to xlDefault. Is there a Application
event that you can fire whenever a particular worksheet inside a particular
workbook is the active window the cursor will be xlNorthwestArrow and all
other times the cursor will go to xlDefault?
--
Cheers,
Ryan
 
Reply With Quote
 
 
 
 
Shasur
Guest
Posts: n/a
 
      12th Sep 2008
Can you try the activate event of that particular worksheet like

Private Sub Worksheet_Activate()
Application.Cursor = xlNorthwestArrow
End Sub

Private Sub Worksheet_Deactivate()
Application.Cursor = xlDefault
End Sub

Cheers
Shasur

--
http://vbadud.blogspot.com


"RyanH" wrote:

> I have a particular worksheet in a workbook, where I want the cursor to equal
> xlNorthWestArrow. The problem occurs when I go to the VBE the cursor remains
> as a arrow, but I need it to go back to xlDefault. Is there a Application
> event that you can fire whenever a particular worksheet inside a particular
> workbook is the active window the cursor will be xlNorthwestArrow and all
> other times the cursor will go to xlDefault?
> --
> Cheers,
> Ryan

 
Reply With Quote
 
RyanH
Guest
Posts: n/a
 
      12th Sep 2008
I have tried that before and it does not work, because the Excel sees the
worksheet with the cursor code as the active worksheet although I am in the
VBE. I figured there has got to be a way to put the cursor code in an
Application event Window_Activate and Window_Deactivate. Is there such a
thing?
--
Cheers,
Ryan


"Shasur" wrote:

> Can you try the activate event of that particular worksheet like
>
> Private Sub Worksheet_Activate()
> Application.Cursor = xlNorthwestArrow
> End Sub
>
> Private Sub Worksheet_Deactivate()
> Application.Cursor = xlDefault
> End Sub
>
> Cheers
> Shasur
>
> --
> http://vbadud.blogspot.com
>
>
> "RyanH" wrote:
>
> > I have a particular worksheet in a workbook, where I want the cursor to equal
> > xlNorthWestArrow. The problem occurs when I go to the VBE the cursor remains
> > as a arrow, but I need it to go back to xlDefault. Is there a Application
> > event that you can fire whenever a particular worksheet inside a particular
> > workbook is the active window the cursor will be xlNorthwestArrow and all
> > other times the cursor will go to xlDefault?
> > --
> > Cheers,
> > Ryan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set workbook window active Daniel M Microsoft Excel Programming 1 26th Nov 2007 04:34 AM
Window Explorer & active cursor both panels =?Utf-8?B?cGhvdG9nNjQ=?= Windows XP Basics 2 17th Oct 2007 02:52 PM
explorer window when cursor on image Frank Microsoft ASP .NET 1 13th Jan 2005 03:20 PM
Change blinking cursor image dsmcd Windows XP General 4 24th Nov 2004 04:44 PM
New WorkBook in the Active Window Harry Bratton Microsoft Excel Worksheet Functions 1 16th Aug 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 PM.