LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8
Default Functions in VBA used in spreadsheet cell

Thank you,
JRXPL


"Gord Dibben" wrote:

One more time..................

With your workbook open, hit Alt + F11 to open the Visual Basic Editor window.

CTRL + r to open the Project Explorer.

DO NOT doubleclick on anything!!

Right-click on your workbook(project) and InsertModule.

Paste this into that module...........

Function CalculateOne(a, b)
CalculateOne = a + b
End Function

FileSave the workbook.

Alt + q to return to Excel window.

In any cell enter =Calculateone(2,3) which returns 5

Make sure you have ToolsOptionsCalculation set to "Automatic"


Gord


On Sun, 20 Apr 2008 11:54:00 -0700, JRXPL
wrote:

Thanks for the info everyone, reading over the posts, I tried to create a new
Module and inserted the Function code and it works in this manner.

I am unable to get it to work in the code area for (General) or the code
area for Worksheet when I dblclick on the worksheet or the code area for
Workbook when I dblclick on the project.

Sorry for the misunderstanding, but is this the way it is suppose to work? I
feel like I am missing a basic concept. I have tried this on two different
computer systems.

Thanks again.



 
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
excel spreadsheet print functions [email protected] Excel Worksheet Functions 1 May 5th 07 12:16 AM
8 Functions in a spreadsheet program Aleatha Excel Discussion (Misc queries) 1 November 1st 06 09:14 PM
Spreadsheet functions Paige Park Excel Discussion (Misc queries) 5 May 16th 06 08:41 PM
Functions not working in Spreadsheet AuthorizedUserPF Excel Worksheet Functions 2 January 31st 06 01:56 PM
Spreadsheet functions Derrick Robinson Excel Worksheet Functions 4 June 25th 05 05:34 PM


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