LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 611
Default Excel treating text as function

Bill,

Application.HyperactiveBehavior = False

Well, we can wish, can't we? This is one of Excel's hyperactive tricks. No
one, except a couple of programmers at Microsoft know why this is there.
Like automatic date formatting, it confounds more people than it helps.
It's actually a formula that Excel presumes is desired. Yet it appears to
be a bug, because if the cell is preformatted for text, it puts the cell
reference, as you said, but doesn't make it a formula (doesn't put = in
front of it as it does in a non-text-formatted cell).

Presumably the user wants only the - character in the cell, and wants to go
directly to another cell via an arrow key once it's been typed. After
typing the -, the user can press Enter, then use the arrow keys. Or precede
the - with an apostrophe ('). Or press F2 (Edit mode instead of Enter mode)
before typing the -. That's about the best I know of.
--
Earl Kiosterud
www.smokeylake.com

"Bill P" wrote in message
ups.com...
I am writing an Excel app in which the user needs to enter dashes
frequently ('-'). However, Excel thinks the user is trying to enter a
function, and if the user presses the down arrow, Excel inserts a
reference to that cell instead of moving down to that cell. Is there
any way to tell Excel not to expect a function? Setting the cell's
format to text doesn't work, and the Worksheet_Change event doesn't
fire until the user is finished editing the cell. Maybe there is some
property in the Application object I can set to fix this?

TIA,

- Bill



 
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
Pivot table treating numbers as text in value field Rune Wentzel Helms Excel Worksheet Functions 2 July 3rd 09 09:15 AM
2007 treating Text as a Number [email protected] New Users to Excel 2 June 26th 08 07:08 PM
If Function Treating Answer as a Text Box and Not a Numeric Box Brettley Excel Discussion (Misc queries) 3 April 15th 08 10:34 PM
How do I stop Excel from treating blank cells as zero? Michael Gillie Excel Worksheet Functions 2 September 13th 05 12:00 PM
How to import a text file to Excel treating all input content are in string. Chittu Excel Discussion (Misc queries) 1 July 22nd 05 06:37 AM


All times are GMT +1. The time now is 11:48 AM.

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

About Us

"It's about Microsoft Excel"