+ Reply to Thread
Results 1 to 3 of 3

Select a Cell but not change workbook

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Select a Cell but not change workbook

    I have a Sub that basically changes a few cell values every 2 minutes exactly and at the very end of the macro running I want it to select cell M5. The code I use to select M5 is

    Please Login or Register  to view this content.

    However, when I'm using another workbook and when this automatic code runs every 2 minutes then I am taken from the workbook where I'm at onto the workbook where the code runs from. It does select cell M5 just fine but I don't want it to take me to the workbook when it happens. I want to be left on the workbook I was on.

    Any ideas how to achieve this?

    Thanks.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Select a Cell but not change workbook

    Test to see if the book is actie:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Select a Cell but not change workbook

    That's a decent workaround Jakob, but I need the code to run whether the workbook is active or not and I want it to run in the background as I'm working on another workbook. Any ideas?
    Last edited by ScabbyDog; 09-19-2012 at 01:19 PM.

+ 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.6.0 RC 1