PC Review


Reply
Thread Tools Rate Thread

Determining which "mode" excel is in

 
 
=?Utf-8?B?QWxpY2UgR3JhaGFt?=
Guest
Posts: n/a
 
      26th Feb 2007
I am using VSTO to develop a C# addin for Excel.

I have several commands in the ribbon that I do not want to be available if
the user has double clicked on a cell and is entering text.

How can I disable my buttons when the user is in either edit or enter mode?
(in the same way the ms alignment, styles etc buttons are disabled)

Also, is there any property I can use to discover the mode excel is in? I
have tried the application.ready property but it isn't what I'm looking for.

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      27th Feb 2007
Alice,
Whilst such functionality is not available from a VBA point of view, I have
seen advise from MS to check Application.Ready, although it seems it may not
function correctly.
This always returns True in VBA as it cannot run in Edit mode, so I can't it
test it now.

Otherwise, you can test if the menu item File>Open is enabled.

NickHK

"Alice Graham" <(E-Mail Removed)> wrote in message
news:80F734FE-EBEC-438A-8564-(E-Mail Removed)...
> I am using VSTO to develop a C# addin for Excel.
>
> I have several commands in the ribbon that I do not want to be available

if
> the user has double clicked on a cell and is entering text.
>
> How can I disable my buttons when the user is in either edit or enter

mode?
> (in the same way the ms alignment, styles etc buttons are disabled)
>
> Also, is there any property I can use to discover the mode excel is in? I
> have tried the application.ready property but it isn't what I'm looking

for.
>



 
Reply With Quote
 
=?Utf-8?B?QWxpY2UgR3JhaGFt?=
Guest
Posts: n/a
 
      1st Mar 2007
Testing the File>Open status sounds good to me.
Thanks for the suggestion

"NickHK" wrote:

> Alice,
> Whilst such functionality is not available from a VBA point of view, I have
> seen advise from MS to check Application.Ready, although it seems it may not
> function correctly.
> This always returns True in VBA as it cannot run in Edit mode, so I can't it
> test it now.
>
> Otherwise, you can test if the menu item File>Open is enabled.
>
> NickHK
>
> "Alice Graham" <(E-Mail Removed)> wrote in message
> news:80F734FE-EBEC-438A-8564-(E-Mail Removed)...
> > I am using VSTO to develop a C# addin for Excel.
> >
> > I have several commands in the ribbon that I do not want to be available

> if
> > the user has double clicked on a cell and is entering text.
> >
> > How can I disable my buttons when the user is in either edit or enter

> mode?
> > (in the same way the ms alignment, styles etc buttons are disabled)
> >
> > Also, is there any property I can use to discover the mode excel is in? I
> > have tried the application.ready property but it isn't what I'm looking

> for.
> >

>
>
>

 
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
Subject: Vista question about "compatibility mode" and "safe mode" Ray Windows Vista General Discussion 1 9th May 2008 02:03 PM
determining contiguous Excel columns that make up an "option group" pietlinden@hotmail.com Microsoft Access 3 28th Jan 2007 09:48 PM
Question on determining "ROW" inside of a "For .. RANGE " loop Don Guillett Microsoft Excel Programming 2 3rd Jan 2007 08:18 PM
How to setup "per target-mode-SCSI-operation DMA" for "target mode" data transfer with **ScsiPort Miniport** driver model? Shailesh Chaudhari Windows XP Drivers 0 23rd Aug 2005 03:19 PM
ask for APIs about change smartphone mode like "Slient" ," Flight","OutDoor" Liren Zhao Microsoft Dot NET Compact Framework 5 3rd Jan 2005 11:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.