Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Something New

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harlan Grove - 08 Mar 2008 19:30 GMT
Excel 2003 SP2.

I've been revising a workbook and came across an Excel quirk that's
new to me. I haven't read about anything similar in the newsgroups.

The workbook in question usually has all worksheets protected and the
workbook protected, but I've unprotected the workbook and all
worksheets and unhidden all but one worksheet. Some of the worksheets
have embedded spaces in their names. There are no worksheet events,
but there are workbook Open, Activate, Deactivate and BeforeClose
events. There's also one udf, named HasFormula, that takes a Range
object as its argument and returns TRUE/FALSE if the first cell in
that range has a formula. I only use this udf in conditional
formatting formulas.

I'm editing formulas in one of the worksheets that's usually hidden.
Call it Sheet C. The formulas were something like

='Sheet B'!X99

and I want to change them to

=IF('Sheet B'!X99<>"",'Sheet B'!X99,'Sheet A'!C123)

I edit the formula in a cell in Sheet C, inserting the 'IF(' at the
beginning, copying the original cell reference in the formula bar,
appending '<>"",', pasting the cell reference, and appending a comma.
Then I press [F2] to change to Enter mode, repeatedly press [Ctrl]+
[PgUp] to move to 'Sheet A', move to cell C123 in that worksheet (now
in Point mode), type a right parenthesis and then press [Enter].

Here's the quirk: Excel tries to enter the edited formula into 'Sheet
A'!C123 rather than into the cell in Sheet C that I began editing.
Fortunately, 'Sheet A'!C123 has a validation rule that rejects the
formula. I should also mention that Sheet A has separate frozen panes,
and C123 is in the lower, unfrozen pane.

Has anyone else had Excel do this? I can work around it, so I'm not
looking for an immediate fix, but this is definitely annoying. If
there's an easy fix, I'd be grateful for any pointers.
Ron Coderre - 09 Mar 2008 04:47 GMT
Harlan,

I got different, but also completely unexpected results!

Workbook Structure...Sheets in this order:
Sheet4
Sheet C
Sheet B
Sheet A

'Sheet B'!A1 contains the CF that engages a pattern if
'Sheet B'!B1 contains a formula (using the UDF).
'Sheet B'!A1 is otherwise empty.

'Sheet C'!A1: ='Sheet B'!X99

I edited 'Sheet C'!A1 per your instructions 3 times
....with 3 different results.

Iteration_1:
Upon pressing enter....
'Sheet B'!B1 gets this formula: =IF('Sheet B'!X99<>"",'Sheet B'!X99,#Ref!)
and returns a circular error.

Iteration_2:
Upon pressing enter....PC pauses as if frozen
I press enter again....Excel crashes.

Iteration_3 (on the post-crash, "repaired" workbook):
Upon pressing enter....
'Sheet B'!A1 (which was empty and had the CF):
now has =IF('Sheet B'!X99<>"",'Sheet B'!X99,'Sheet A'!C123)
(the CF is still valid.)

In all 3 instances, the edited cell
'Sheet C'!A1 retained it's original formula: ='Sheet B'!X99

I am completely stumped by
1) the failure to achieve the intended result
and
2) the 3-tries, 3-different erroneous results.

Consequently, I have no solution or explanation to offer.

Appropos, Harlan
A challenge worthy of your Excel expertise.
....."a bon chat, un bon rat!"

--------------------------

Best Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

> Excel 2003 SP2.
>
[quoted text clipped - 36 lines]
> looking for an immediate fix, but this is definitely annoying. If
> there's an easy fix, I'd be grateful for any pointers.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.