Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Custom function problems

Hi
I have created a marksbook file that calculates marks for students. I need
to use some custom functions that I have created to make the calculation
process smoother. I only turn calculation on when required. For the most
part the functions seem to work fine. However from time to time, something
seems to trigger them so that they stop working. In the process of using
the marksbook, calculation is turned on and off, protection on certain cells
is turned on and off and events are turned on and off when required.
Do I need to recalculate more often to fix them problem ? For exanple, when
any cell is changed on the sheet, is function recalculation required ? Any
ideas would be helpful. Here is an example of one of the functions I created
and use in the marksbook.



Function MU4TT(rng)
F = 0: L = 0
For k = 25 To 29
If IsNumeric(Cells(rng.Row, k)) = False Then GoTo Ntk
If Cells(rng.Row, k) = "" Then GoTo Ntk
F = F + Cells(rng.Row, k) / 100 * Cells(2, k)
L = L + Cells(2, k)
Ntk:
Next k
If L = 0 Then
MU4TT = ""
Else
MU4TT = Int(F / L * 100 + 0.5)
End If
End Function

Thanks in advance
Andrew Bourke



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture problems in custom header DDawson Excel Discussion (Misc queries) 0 March 11th 08 12:10 PM
Custom cell format problems Adam Excel Discussion (Misc queries) 1 June 29th 05 05:50 AM
excel focus problems with custom RTD server (real time data) S Guy Excel Programming 3 February 1st 05 06:24 PM
Adding a custom function to the default excel function list DonutDel Excel Programming 3 November 21st 03 03:41 PM
Problems deleting custom menu = double entries BenD Excel Programming 2 November 3rd 03 11:14 AM


All times are GMT +1. The time now is 03:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"