+ Reply to Thread
Results 1 to 2 of 2

Thread: How do I get focus back on an Excel file?

  1. #1
    Stumpiana
    Guest

    How do I get focus back on an Excel file?

    When automating Excel, if there is a picture (graphic) on the worksheet, when
    the file is opened, the picture has the focus and mouse-clicks anywhere on
    the Excel window are lost. Is there a way to get the focus back so that
    other cells can be editted?

  2. #2
    Jon Peltier
    Guest

    Re: How do I get focus back on an Excel file?

    Insert this line of code into the macro:

    ActiveSheet.Range("A1").Select

    You could also rework the code to avoid selecting the shape in the first
    place.

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com/
    _______


    "Stumpiana" <Stumpiana@discussions.microsoft.com> wrote in message
    news:556F2829-7E22-4B37-9D25-CD1742D1052C@microsoft.com...
    > When automating Excel, if there is a picture (graphic) on the worksheet,
    > when
    > the file is opened, the picture has the focus and mouse-clicks anywhere on
    > the Excel window are lost. Is there a way to get the focus back so that
    > other cells can be editted?




+ Reply to 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.2.0