Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This did not work either:
Yes it does. Exit Function You don't need this, not that it does any harm. -- Jim "pop tufty" wrote in message ... office 2007, excel, XP, dell laptop Of course when I upgraded to office 2007, I have to port my macros. I am getting a syntax error on this function and do not know why. Help button is not much use. Function Get_Value() Dim Value As Integer Value = 10 Return Value ' <-- syntax error shows here End Function How is one supposed to return a value from a function? This did not work either: Function Get_Value() As Integer Get_Value = 10 Exit Function End Function Thanks - Pop Tufty |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Call a function within Excel VBA --- need help can't figure out syntax correctly | Excel Worksheet Functions | |||
How to call a COM add-in function from macro in Excel 2007 | Excel Discussion (Misc queries) | |||
function call paramater question | Excel Programming | |||
Newbie question: function call | Excel Programming | |||
VBA Syntax for VLOOKUP to return array of return values | Excel Programming |