LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Is DATE somehow different in XL 2003 SP3?

Hi,
the following macro has always worked fine in XL 200 and 2003 environments,
and is still working well in XL 2003 SP3, BUT, once executed at this level
and then exported down to both the previous XL level systems, it stops al
the ***** signalled code, being unable to resolve the DATE instruction (?!?!).
Have you ever heard something like that?

Thanks in advance for any help
Romolo


Private Function evento(ByVal classe As String, StPoint As Integer) As Integer
Application.Volatile

'restituisce il puntatore dell'evento nella lista degli eventi inseriti in
Calendario
On Error GoTo handlerror
Dim errdes As String
Dim Lista_Eventi As Range
Dim Classi As Range
Dim Rientri As Range
Dim Rientro As Date
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim test As String
Set Classi = ThisWorkbook.Worksheets("CSorted").Range("H3:L200" )

Set Lista_Eventi = ThisWorkbook.Worksheets("CSorted").Range("D3:D200" )
Set Rientri = ThisWorkbook.Worksheets("CSorted").Range("G3:G200" )
StPoint = StPoint + 1
For i = StPoint To 200 'i = puntatore lista eventi = n. riga
If Not IsDate(Rientri(i)) Then
Exit Function
Else
Rientro = Rientri(i)
End If

'*****************
If Rientro < Date Then GoTo ispassed 'HERE it stops
'*****************

For j = 1 To 5 'J = puntatore classi partecipanti all'evento = n.
colonna
test = UCase(Classi(i, j))
test = Trim(test)
If test = "" Then Exit For
If classe = test Then
evento = i
Exit Function
End If
Next j
ispassed:
Next i
evento = 0
Exit Function
handlerror:
errdes = Err.Description
End Function
--
grazie, Romolo
 
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
date format in Excel 2003 sptpensions Excel Worksheet Functions 4 August 20th 07 05:58 PM
How can I add 3 years to date 03/05/2003 mesh Excel Worksheet Functions 1 April 17th 06 09:39 AM
date format in Excel 2003 Chunt Excel Discussion (Misc queries) 1 September 15th 05 01:09 AM
How to change date as general "200306" to date "06/2003" Delwyn Excel Discussion (Misc queries) 1 June 15th 05 03:24 AM
In Excel 2003, entering date without slashes, the date is incorre. sj Excel Discussion (Misc queries) 6 January 6th 05 03:07 PM


All times are GMT +1. The time now is 02:25 AM.

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

About Us

"It's about Microsoft Excel"