macros

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Macros

Macros

resolvedResolved · Low Priority · Version 2003

James has attended:
Excel Introduction course
Excel Intermediate course
Excel Advanced course
Access Introduction course
Access Intermediate course
Access Advanced course

Macros

what do i enter into into VBE to create a new function?

RE: macros

Hi James,

Thank you for your question.

The first thing you would need to do is go into the Visual Basic Editor through Tools and Macro.

Insert a new module and start the code with the following:

Function AddUp (Field1 as Currency, Field2 as currency) as currency

Then define what The function will do:

AddUp =(field1-field2)

End Function

I hope this answers your question.

Regards

Simon

Tue 26 May 2009: Automatically marked as resolved.


 

Excel tip:

Screen Splitters in Excel

Screen splitter icons can be set from the ribbon bar, or dragged from the scroll bars. The icon just above the up arrow on the right scroll bar controls the horizontal splitter; the icon to the right of the right arrow on the bottom scroll bar controls the vertical splitter.

These icons can be double-clicked to split the screen at the top left of the cell currently in use.

View all Excel hints and tips


Server loaded in 0.08 secs.