Closed Thread
Results 1 to 3 of 3

AppActivate Error

  1. #1
    Hayeso
    Guest

    AppActivate Error

    The following line of code works when I use Excel 2003 SP1 but when I try to
    use it in Excel 2003 SP2 then I get an "Invalid Procedure Call" Error

    AppActivate (Application.Name)

  2. #2
    Hayeso
    Guest

    RE: AppActivate Error

    Fixed it myself.

    The issue has to with the difference between the Excel Application name and
    what appears In the Excel Title Bar. The Application Name is "Microsoft
    Excel". The Text in the title bar is "Microsoft Excel - MyWorkbook.xls"

    I worked around it by changing the code to read
    AppActivate (Application.Name) & " - " & thisworkbook.name

    "Hayeso" wrote:

    > The following line of code works when I use Excel 2003 SP1 but when I try to
    > use it in Excel 2003 SP2 then I get an "Invalid Procedure Call" Error
    >
    > AppActivate (Application.Name)


  3. #3
    Norman Jones
    Guest

    Re: AppActivate Error

    Hi Hayeso,

    Try:

    AppActivate Application.Caption


    ---
    Regards,
    Norman



    "Hayeso" <Hayeso@discussions.microsoft.com> wrote in message
    news:CDEC1708-C354-4113-ABD2-8AAB9EC39031@microsoft.com...
    > Fixed it myself.
    >
    > The issue has to with the difference between the Excel Application name
    > and
    > what appears In the Excel Title Bar. The Application Name is "Microsoft
    > Excel". The Text in the title bar is "Microsoft Excel - MyWorkbook.xls"
    >
    > I worked around it by changing the code to read
    > AppActivate (Application.Name) & " - " & thisworkbook.name
    >
    > "Hayeso" wrote:
    >
    >> The following line of code works when I use Excel 2003 SP1 but when I try
    >> to
    >> use it in Excel 2003 SP2 then I get an "Invalid Procedure Call" Error
    >>
    >> AppActivate (Application.Name)




Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1