Running a Sub from a cell expression in Excel



I am new to VBA. I wrote a simple Sub in VBA (say MySub). When I try
to run it from a cell expression in Excel (=MySub), I get the
following message: "That name is not valid".
Any help will be appreciated.

David
.



Relevant Pages

  • Re: VBA errors in 2007 (works fine in 2003)
    ... It's just breaking on the Mac version of Excel. ... Pak allowing you to call functions in the ATP from within VBA. ... menu in VBA, choose References, and select "atpvbaen.xls". ... If there is the possibility of a name collision (two or more libraries ...
    (microsoft.public.excel.misc)
  • Re: VBA errors in 2007 (works fine in 2003)
    ... The file is working as intended now in Excel 2003 and 2007. ... Pak allowing you to call functions in the ATP from within VBA. ... menu in VBA, choose References, and select "atpvbaen.xls". ... If there is the possibility of a name collision (two or more libraries ...
    (microsoft.public.excel.misc)
  • Re: Working example how to create a DLL using Visual C# 2008
    ... This compiled fine and runs OK in both Excel 2007 and 2003 ... Tolls References or Tools Add-ins so that I can use it from within the Excel ... > meaningful VBA projects. ... >>language hasn't been updated in nearly a decade. ...
    (microsoft.public.excel.programming)
  • Re: VBA errors in 2007 (works fine in 2003)
    ... The file is working as intended now in Excel 2003 and 2007. ... Pak allowing you to call functions in the ATP from within VBA. ... menu in VBA, choose References, and select "atpvbaen.xls". ... If there is the possibility of a name collision (two or more libraries ...
    (microsoft.public.excel.misc)
  • Re: Exporting from Project 2007 to Word 2003 or Excel 2003
    ... macro and export an Excel worksheet with no blank rows - exactly ... Resource Names into the worksheet created using the macro. ... VBA, I am almost inclined to teach myself a little bit of VBA so I ... Dim xlCol As Excel.Range ...
    (microsoft.public.project)

Loading