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: 4
Default Unable to access complex arithmetic functions in VBA for Excel 200

I'm trying to use the complex math functions (e.g., Complex(), ImSum,
ImProduct(), etc.) in VBA. However, I encounter the error message "Sub or
Function not defined."

In earlier verions of Excel (2000, 2003), I reference the Analysis ToolPak -
VBA (atpvbaen.xla) in the macro module and macro works correctly.

However, in Excel 2007 when I do the same thing I encounter the problem
described before. I specify Tool Reference and click on atpvbaen.xls
entry. This code causes the problem
Sub mysub()
[a1] = Complex(1, 2)
End Sub

The error message "Sub or Function not defined." appears and the debugger
highlights the text "Complex".

Any suggestions will be appreciated. In particular, whatever code is
suggested needs to work in earlier versions of Excel.

TIA

Jim T

 
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
Performing arithmetic functions to cells with number and text Arithmetic functions with embedded text Excel Discussion (Misc queries) 4 May 15th 07 03:36 PM
All arithmetic functions return Zero as result Khoshravan Setting up and Configuration of Excel 9 June 26th 06 03:24 AM
Unable to access Excel Help maztaz Excel Discussion (Misc queries) 0 May 9th 06 01:36 PM
apply arithmetic functions on special multiple cells Zhekka Excel Worksheet Functions 5 February 10th 06 02:04 AM
Unable to access Internet from Excel TooSimple Excel Worksheet Functions 0 October 13th 05 05:40 PM


All times are GMT +1. The time now is 05:33 PM.

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"