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 / Programming / December 2006

Tip: Looking for answers? Try searching our database.

Just a quick thank

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rumkus@hotmail.com - 10 Dec 2006 22:26 GMT
Been on my Sumproduct syntax problem for nearly 3 hours till I hit
below.(Jan 8 2005 4:08 am )

Thank you very much Dave.

Sub testIt2()
   Dim rng1 As Range, Rng2 As Range, Rng3 As Range
   Set rng1 = ActiveSheet.Range("a1:a12")
   Set Rng2 = Workbooks("book4").Sheets("sheet1").Range("b1:b12")
   Set Rng3 = ActiveWorkbook.Sheets("sheet3").Range("c1:c12")
   MsgBox Evaluate("SUM((" & rng1.Address(external:=True) & "=""f"")"
_
                    & "*(" & Rng2.Address(external:=True) &
"=""cls"")" _
                     & "*" & Rng3.Address(external:=True) & ")")
End Sub
(With the sub/end sub lined up! <vbg>)
Dave Peterson - 10 Dec 2006 23:20 GMT
Thank goodness for google!

> Been on my Sumproduct syntax problem for nearly 3 hours till I hit
> below.(Jan 8 2005 4:08 am )
[quoted text clipped - 13 lines]
> End Sub
> (With the sub/end sub lined up! <vbg>)

Signature

Dave Peterson

 
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.