LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default A #NAME? problem with a transferred function

I made a calendar file on Excel at a computer with Windows XP and a version
of Excel earlier than the 2007 version designed for use with windows vista.
When I transferred the file to my home computer which uses these later
Microsoft applications (Vista and Office 2007), a user function I had made to
display the ordinal form of cardinal numbers gave me the useless and
ubiquitous error of #NAME? in every cell I had used it. The function is...

Function Ordinal(CardNum) As String
OrdEnd = "th": CardNum = Int(CardNum)
If CardNum Mod 10 = 1 Then OrdEnd = "st"
If CardNum Mod 10 = 2 Then OrdEnd = "nd"
If CardNum Mod 10 = 3 Then OrdEnd = "rd"
Teens = CardNum Mod 100
If Teens 10 And Teens < 14 Then OrdEnd = "th"
Ordinal = Format(CardNum) + OrdEnd
End Function

This function works just fine in its file of origin. But the file I brought
home fails to, well, function with the very same macro procedure. I am quite
perturbed. Help!
--
If it ain''t broke, don''t fix it!
 
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
Can information be transferred between workbooks? mbeljan Excel Discussion (Misc queries) 1 August 21st 09 05:47 AM
Indirect - how to ensure the formatting is transferred Pete G[_2_] Excel Discussion (Misc queries) 1 January 14th 09 09:18 AM
Need to have data transferred as it is typed onto another wrksht nhboyer Excel Worksheet Functions 0 February 22nd 07 07:39 PM
Excel files transferred to XP system trp754 Excel Discussion (Misc queries) 2 March 30th 05 03:31 PM
Can I have info on first tab transferred to subsequent tabs? Jaime P Excel Worksheet Functions 3 February 8th 05 03:17 PM


All times are GMT +1. The time now is 06:18 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"