PC Review


Reply
Thread Tools Rate Thread

2007 - ShowPrecedents Q

 
 
Dana DeLouis
Guest
Posts: n/a
 
      27th Sep 2007
I would like to ask if anyone thinks this is a bug w/ Excel 2007.
I did not catch a problem recently because I relied on "ShowPrecedents."
The code below will set the problem up.
Cell A2 correctly shows that there are two cell ranges.
Cell A4 shows only 1 range, and not the second D4:H4.
I didn't find anything in Microsoft's kb articles.
Any thoughts, or is it just my system with this problem?

Sub SetUp()
[A2].Formula = "=SUM(D2:F2)/SUM(F2:H2)"
[A4].Formula = "=SUM(D4:F4)/SUM(D4:H4)"

[A2].ShowPrecedents
[A4].ShowPrecedents
[A4].Select
End Sub


TIA. :>~
--
Dana DeLouis
Windows XP & Excel 2007



 
Reply With Quote
 
 
 
 
Sandy Mann
Guest
Posts: n/a
 
      28th Sep 2007
I get the same result in XL97 - glad to hear that I am uptodate in
something! <g>

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"Dana DeLouis" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I would like to ask if anyone thinks this is a bug w/ Excel 2007.
> I did not catch a problem recently because I relied on "ShowPrecedents."
> The code below will set the problem up.
> Cell A2 correctly shows that there are two cell ranges.
> Cell A4 shows only 1 range, and not the second D4:H4.
> I didn't find anything in Microsoft's kb articles.
> Any thoughts, or is it just my system with this problem?
>
> Sub SetUp()
> [A2].Formula = "=SUM(D2:F2)/SUM(F2:H2)"
> [A4].Formula = "=SUM(D4:F4)/SUM(D4:H4)"
>
> [A2].ShowPrecedents
> [A4].ShowPrecedents
> [A4].Select
> End Sub
>
>
> TIA. :>~
> --
> Dana DeLouis
> Windows XP & Excel 2007
>
>
>
>



 
Reply With Quote
 
Wondering
Guest
Posts: n/a
 
      28th Sep 2007
Excel 2007. Confirmed if the formulas are entered by VBA. Entered manually,
everything is fine.

"Dana DeLouis" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I would like to ask if anyone thinks this is a bug w/ Excel 2007.
> I did not catch a problem recently because I relied on "ShowPrecedents."
> The code below will set the problem up.
> Cell A2 correctly shows that there are two cell ranges.
> Cell A4 shows only 1 range, and not the second D4:H4.
> I didn't find anything in Microsoft's kb articles.
> Any thoughts, or is it just my system with this problem?
>
> Sub SetUp()
> [A2].Formula = "=SUM(D2:F2)/SUM(F2:H2)"
> [A4].Formula = "=SUM(D4:F4)/SUM(D4:H4)"
>
> [A2].ShowPrecedents
> [A4].ShowPrecedents
> [A4].Select
> End Sub
>
>
> TIA. :>~
> --
> Dana DeLouis
> Windows XP & Excel 2007
>
>
>



 
Reply With Quote
 
Dana DeLouis
Guest
Posts: n/a
 
      28th Sep 2007
Thanks everyone for the feedback. It appears that the problem occurs when
two ranges share the same first cell.
For another example, it appears that only the first group of cells are
flagged by ShowPrecedents. The second function's range is ignored.

=SUM(A1:C1)+SUM(A1:A3)
=SUM(A1:A3)+SUM(A1:C2)

That's too bad. I use "ShowPrecedents" often.
It's a great tool. Didn't know it had "problems."
Thanks for the feedback. :>~

--
Dana



"Dana DeLouis" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I would like to ask if anyone thinks this is a bug w/ Excel 2007.
> I did not catch a problem recently because I relied on "ShowPrecedents."
> The code below will set the problem up.
> Cell A2 correctly shows that there are two cell ranges.
> Cell A4 shows only 1 range, and not the second D4:H4.
> I didn't find anything in Microsoft's kb articles.
> Any thoughts, or is it just my system with this problem?
>
> Sub SetUp()
> [A2].Formula = "=SUM(D2:F2)/SUM(F2:H2)"
> [A4].Formula = "=SUM(D4:F4)/SUM(D4:H4)"
>
> [A2].ShowPrecedents
> [A4].ShowPrecedents
> [A4].Select
> End Sub
>
>
> TIA. :>~
> --
> Dana DeLouis
> Windows XP & Excel 2007
>
>
>

 
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
WINDOWS VISTA, WINDOWS XP ( X64 ) PRO CORP SP2, OFFICE 2007, PROJECT 2007, PUBLISHER 2007, HACKING LESSONS 1-17, other 2006/December/20 new programs leo Windows XP Basics 5 27th Dec 2006 03:18 PM
WINDOWS VISTA, WINDOWS XP ( X64 ) PRO CORP SP2, OFFICE 2007, PROJECT 2007, PUBLISHER 2007, HACKING LESSONS 1-17, other 2006/December/20 new programs kashumoto_tokugawa Windows XP Embedded 0 20th Dec 2006 04:16 AM
WINDOWS VISTA, WINDOWS XP ( X64 ) PRO CORP SP2, OFFICE 2007, PROJECT 2007, PUBLISHER 2007, HACKING LESSONS 1-17, other 2006/December/20 new programs leo Microsoft VC .NET 0 20th Dec 2006 04:11 AM
WINDOWS VISTA, WINDOWS XP ( X64 ) PRO CORP SP2, OFFICE 2007, PROJECT 2007, PUBLISHER 2007, HACKING LESSONS 1-17, other 2006/December/20 new programs leo Microsoft Dot NET 0 20th Dec 2006 04:08 AM
OFFICE 2007 ENTERPRISE UG VL (OFFICE-SOLUTION), PROJECT 2007, PUBLISHER 2007, BRITANNICA 2007, other 2006-11-26 new programs CDs 5200 - 5227, and new games CDs 1945 - 1959 kashumoto_tokugawa Windows XP General 0 26th Nov 2006 12:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 PM.