LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Excel 2007 VB function call return value syntax question

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




 
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
Call a function within Excel VBA --- need help can't figure out syntax correctly [email protected] Excel Worksheet Functions 11 February 2nd 12 10:31 PM
How to call a COM add-in function from macro in Excel 2007 Sink0 Excel Discussion (Misc queries) 1 January 11th 10 06:47 AM
function call paramater question Arnold Klapheck Excel Programming 3 September 22nd 06 08:50 PM
Newbie question: function call wachen Excel Programming 1 September 24th 04 07:05 PM
VBA Syntax for VLOOKUP to return array of return values Alan Beban[_3_] Excel Programming 7 August 5th 03 11:41 AM


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