Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default XL2003: Toggling "Extend" Mode with VBA

Hello all,

Is there a way to toggle (or test if enabled) "Extend" mode with VBA?

I wanted to put a button on a toolbar to toggle extend mode so I could turn
it on/off with a mouse click.

I tried this...



Sub ToggleExtend()
Application.SendKeys "{F8}"
End Sub



....and it turned it on, but it won't turn it off.

Thanks for any help anyone can provide,

Conan Kelly



---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default XL2003: Toggling "Extend" Mode with VBA

I could hit the Escape key to turn it off.

Maybe you could test that in a different macro???

Conan Kelly wrote:

Hello all,

Is there a way to toggle (or test if enabled) "Extend" mode with VBA?

I wanted to put a button on a toolbar to toggle extend mode so I could turn
it on/off with a mouse click.

I tried this...

Sub ToggleExtend()
Application.SendKeys "{F8}"
End Sub

...and it turned it on, but it won't turn it off.

Thanks for any help anyone can provide,

Conan Kelly

---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL2003: "Auto row height" with Wrap Text driving me nuts sebt Excel Discussion (Misc queries) 0 May 1st 07 03:50 PM
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 2 March 10th 07 05:10 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM
Toggling between a macro running a "Form" and Excel ecpl_3[_2_] Excel Programming 5 January 9th 06 06:25 PM
XL2003 "paste method of worksheet class failed" Chuck Elsham Excel Programming 11 May 13th 05 12:57 PM


All times are GMT +1. The time now is 08:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"