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: 193
Default How do I create a User Defined Function using VBA in Excel 2007?

I am running Excel 2007 on Windows Vista using Parallels Desktop for MAC, as
the excel version for MACs computer does not support VBA functionality (my
MAC is a 2.8GHz Intel Core Duo machine running MAC OS 10.5.3 - the type of
processor which would allow me to create a vitural IBM PC and run all MS
applications as if I were on an actual IBM PC).

When using prior versions of Excel (from ealier version of Microsoft's OS) I
was happily able to create and use user defined functions I had created in
VBA.

Now it seems as though when I create even the simplest of functions:

Option Explicit

Function doll(st As Single) As Single

Dim rate As Single
rate = 1.5
doll = st * rate

End Function

Excel 2007 does not recognize this and in the cell in which I am attempting
to call it all I get is the infamous #NAME? error message (for which scarce
useful information is provided).

I am wondering if there is some switch I am not setting correctly or
something else I just haven't configured. The new version of excel is
diferent enough that do not where any of these settings may be.

Any help provided would be greatly appreciated.
 
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
User Defined Function is not working for me in Excel 2007 Abdi Excel Discussion (Misc queries) 1 November 18th 08 10:50 PM
How can I create a user defined function in excel? Martinj Excel Discussion (Misc queries) 4 August 20th 05 06:11 PM
How to create User Defined function in Excel Johnny Ko Excel Programming 2 December 5th 03 09:09 AM
How to create User Defined Function Warwick Renshaw Excel Programming 0 July 25th 03 07:15 AM
Create help for user-defined function Tom Ogilvy Excel Programming 0 July 12th 03 06:11 PM


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