473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Sum above in Excel 2000

63
I have the following code - where I am trying to enter a sum of the cells above formula wherever there is a blank in column J. It keeps failing on the second to last line of the code - as it doesn't seem to recognise the the sum(above) formula - any ideas - it may be that this function isn't supported in Excel 2000 - if not are there any other ways to achieve this?


Dim MyRangesum As Range, DelRangesum As Range, Fsum As Range
Dim MatchStringsum As String, SearchColumnsum As String, ActiveColumnsum As String
Dim FirstAddresssum As String, NullChecksum As String
Dim AFsum

Set MyRangesum = Columns("J")

Set Fsum = MyRangesum.Find(What:="", After:=MyRangesum.Cells(1), LookIn:=xlValues, Lookat:=xlPart)
If Not Fsum Is Nothing Then
Set DelRangesum = Fsum
FirstAddresssum = Fsum.Address
Do
Set Fsum = MyRangesum.FindNext(Fsum)
Set DelRangesum = Union(DelRangesum, Fsum)
Loop While FirstAddresssum <> Fsum.Address
End If

'If there are valid matches then insert the rows


If Not DelRangesum Is Nothing Then DelRangesum.ActiveCell.Formula Formula:="=Sum(above)"
Application.ScreenUpdating = True
Jul 30 '07 #1
0 759

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dean Bortell | last post by:
This code runs fine on win xp and office xp: string sheetPassword = "Senior1993"; string sheetToOpen = "NewRpt1c.xls"; Excel.Application excelApp = new Excel.Application();...
17
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
6
by: Dean Bortell | last post by:
This code runs fine on win xp and office xp: string sheetPassword = "Senior1993"; string sheetToOpen = "NewRpt1c.xls"; Excel.Application excelApp = new Excel.Application();...
4
by: grego9 | last post by:
I am trying to write some VBA in Excel 2000 that scans down column L and inserts the Autosum command in each blank cell. Outside of VBA when I click the autosum command excel sums all the cells...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.