+ Reply to Thread
Results 1 to 4 of 4

Activate Open Workbook

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Activate Open Workbook

    My code currently opens any workbook, document, video, etc. from 1 button. When it comes to opening a file that is already open, it gives the following message.

    "This File Is Already Open"

    I want to convert the code to activate (Display) the non-displayed workbook. In my sample code, I have 2 rows of rem'd X's to show where the problem is, I think.

    'xxxxxxxxxxxxxxxxxxxxxxxxxxx

    Questionable Code

    'xxxxxxxxxxxxxxxxxxxxxxxxxxx

    Please Login or Register  to view this content.
    Leith are you around?
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: How to activate workbook already open

    Hello Matt,

    My guess is the file you are trying to activate has been opened in separate instance of Excel. ActiveWorkbook will only display workbooks open in the current instance of Excel. If memory serves me correctly, I wrote a macro for you to do this. almost a year ago. Here it is again...
    Please Login or Register  to view this content.
    Macro Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to activate workbook already open

    Thanks Leith . . . Your memory is correct, I am opening separage instances of Excel. I am using the code you gave me for opening all files where I directly open a workbook using the file name. Love it and it works great.

    I have this one button though, that you helped me with to open any file, Excel or Word as examples, where I have selected the name of the file in a cell, with the path & file name one cell to the left..

    I was hoping that I could modify the existing macro so it didn't have to be totally re-written. I don't think that the code you referenced will work for this application.

    Do you need any other information to evaluate this?

    P.S. I'll be sending you my eMail program this coming week. Just doing cleanup and decor. My beta test people love it.

  4. #4
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to activate workbook already open

    Please Bump Up

+ 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