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 / Word / Programming / December 2007

Tip: Looking for answers? Try searching our database.

Formula Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Question Boy - 18 Dec 2007 15:54 GMT
Hello,

I am, through the use of vba, dynamically building a table from data in a
text file.  Then I add at the bottom of the table an extra row to calculate
the summation of the values.

Values
($2,431,509)
$183,526
$0
($2,020,596)

Summation
($1,837,070)

My summation is entered as 'Selection.InsertFormula Formula:="=Sum(Above) \#
" & Chr(34) & "$#,##0;($#,##0)" & Chr(34)'

and yet it is not including the 1st value in the summation (the summation is
erroneous).  Anyone have any ideas as to why or how to get around the problem?

Thank you,

QB
Helmut Weber - 18 Dec 2007 21:16 GMT
Hi Question Boy,

I'm no good at fields,
so I won't comment on it,
but the summation isn't just erroneous,
it is value (4) minus value (2).

I wonder.

>Values
>($2,431,509)
[quoted text clipped - 4 lines]
>Summation
>($1,837,070)

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
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.