Excel - Excel 2007 VB function call return value syntax question
Asked By poptuft
18-Jan-08 01:06 PM
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
Excel 2007
(1)
Macros
(1)
VB
(1)
XP
(1)
Tufty
(1)
Jim Rech replied...
Yes it does.
You do not need this, not that it does any harm.
--
Jim
Win7 VirtualStore Weirdness with Excel 2002 and earlier Excel I thought I'd share a weird experience I had today in case it saves installer for it - - which registers it as an add-in for all installed versions of Excel - - and tested it. Fine in Windows 2000 in all installed versions of Excel. Boot to Windows XP, fine there too. Boot to Windows 7. Fine in Excel 2010, 2007, and 2003. But Excel 2002 and 2000 were still loading the old version of the add-in. I uninstalled
Calculate actual trunk utilization based on call start / duration Excel I am 'attempting' to calculate our phone line utilization at work. The end goal is the more difficult it becomes. I have roughly 250, 000 calls (I'm obviously using excel 2007) that I am attempting to run calculations against. Here is a sampling of the data a way to determine how many lines we actually need. Good Luck and Thanks, Nathaniel Excel Programming Discussions Sheets (1) Excel (1) GetMaxUsageBySecond (1) SUMPRODUCT (1) INDIRECT (1) Macro (1) SUM (1) MAX (1) Let's Resource Utilization and many thick books have been written on the topic. You can use Excel with some simple formulas to get information about your data. Let’s say we split column C. I began in row #3. In D1 and D2 we enter: 3 / 19 / 2007 8:00:00 3 / 19 / 2007 8:01:00 the beginning and end of a typical one minute window. In D3
Pb de recalcul Excel Bonjour, J'ai un problème de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF cela soit automatique ? Merci d'avance à ceux qui se pencheront sur mon cas. Caroual Excel - French Discussions WorksheetFunction (1) AddIns (1) Worksheets (1) Excel 2007 (1) Macro (1) Proc (1) LEFT (1) VBA (1) Bonsoir Dans la doc sur HEXBIN 426a74cc@news.free.fr. . . Bonjour, J'ai un probl?me de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF e ou Bonjour, D??butons par une petite explication : Auparavant sous les versions ant??rieures ?? Excel 2007, si les 2 macros compl??mentaires ("utilitaire d'analyse" ou titre d'exemple directement dans
32 bit DLL with 64 bit Excel 2010 Excel We have an app which creates large Excel workbooks. For example, one workbook has 1, 000 worksheets. In other cases there are fewer worksheets but the Excel file can be 80 MB or larger. Since this sometimes crashes Excel 2007 and 2003, I am considering using 64 bit Excel 2010. Would 64-bit Excel be more reliable with workbooks this size than 32-bit Excel? Is 32-bit Excel
INT defect: Please try this on 2007 for me Excel Would someone who has Excel 2007 running on an Intel-compatible computer (i.e. not a Mac) please try the examples below and post your results here? I posted this inquiry to an Excel 2010 blog. Not sure if / when I will hear back from them. (Extra credit: If you have Excel 2010 running on an Intel-compatible computer, feel to try these examples and post your results here, too.) Has the following Excel 2003 problem been fixed in 2010 (or 2007)? INT(123456789 - 0.0000004) returns 123456789 instead of 123456788. This causes a problem in formulas