+ Reply to Thread
Results 1 to 9 of 9

Open 2 workbooks in Excel 2016 cannot click controls or enter cells

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    8

    Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    I created a multi-sheet main workbook of many sheets (the destination workbook, which has code) that calls and opens a simple 1-sheet secondary workbook (the source, without any code). When the main is opened each time, it calls the secondary file to be opened. The secondary file is just a 1-sheet plain workbook containing repopulated data from the web. The main workbook is made up of sheets that have many formulae to calculate data presented in the source. This was a 100% all fine (still is) under Excel 2010. There is no file linking, no need because I only need to open the main, and the main opens the secondary and recalculates itself via all the formulae it has on the data it refers from the secondary.

    Recently, in line with company actions I had to install and use Excel 2016. Now, when i open the same main workbook a peculiar problem arises. When opening main is complete, the active window (focus) has turned to become the secondary workbook. With this, I have to manually click the mouse on the destination workbook every time after opening the main because the active window is now the source workbook's window. No code has been changed, yet this happens. When i try to workaround this by adding a code in the destination under the OpenSecondaryFile SUB as follows:

    ActiveWindow.WindowState = xlMinimized

    to hide the secondary file so that the main is shown first after opening, this on the onset appears to have worked as after opening is complete, the active window has shown back to the main workbook again. However, something else happens: Excel 2016 strangely and stubbornly doesn't allow me to type on or click on any buttons on the main AFTER allowing only just 1 click or 1 cell activate on any button or cell on the main. But, if I shift focus away from the main workbook before clicking any button or cell by JUST selecting ANY window, which can be any active window or application or browser, or even just the plain Windows desktop page, or the secondary file, the main workbook is normal and allows again, just like when in Excel 2010 would. Why is this so? Why Excel 2016 is presenting this issue? I also noticed that after adding the above code, although the focus switched back to the main workbook, but the top right corner’s standard window maximize, minimize, close controls are grayed out. When I shift the focus to another window or workbook and return to the main, all is normal again and the controls are no longer grayed out.

    I tested my file in my old Excel 2010 and it still is fine as it has always been before Excel 2016.

    How can I solve this? Any ideas or solutions out there?




    sincerely,
    Jason.

    http://www.excelforum.com/excel-prog...ml#post4592979
    https://www.mrexcel.com/forum/excel-...ml#post4766233
    http://www.ozgrid.com/forum/showthre...502#post786502
    Last edited by Jason_Chan; 02-27-2017 at 07:38 AM. Reason: crosspost links

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    try putting in the command

    Windows(workbookname.xlsm).activate
    in the various places you need the correct workbook to be active.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    8

    Unhappy Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    hi, i tried that too but no, not working. With that line under OPEN Sub, Excel 2016 still opens and gives first focus to the secondary workbook despite this command.

    Why?

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  5. #5
    Registered User
    Join Date
    06-27-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    hi

    sorry for unintentionally overstepping your rule, i have edited my orig post & quoted the links done as you requested.

    sincerely,
    Jason

    Quote Originally Posted by cytop View Post
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  6. #6
    Registered User
    Join Date
    06-27-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    hi

    i'm sorry if this is a serious offence to your rules, but i\ll wait for you to let me know if you seriously forbids this in which case i'll have to delete this post. i only post on 3 as i need reply within this week otherwise, i'll just post in 1 forum.

    sincerely,
    Jason

    Quote Originally Posted by cytop View Post
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  7. #7
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    The other forums ask the same...

  8. #8
    Registered User
    Join Date
    06-27-2013
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    hi cytop

    I just need to explain that i'm posting in 3 forums only because i have never gotten a reply to another problem few months ago, which prompted me to this time. if and when i did get a working solution from any forum first, i would delete all three posts or mark as Solved for sure.

  9. #9
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Open 2 workbooks in Excel 2016 cannot click controls or enter cells

    Feel free to post it in as many forums as you want, as long as you follow the posting guidelines in those forums - both of the other forums you have linked above ask for links to cross posts as well.

    As of now, you haven't updated your thread on OzGrid ... I haven't viewed the thread on MeExcel as my phone always has problems with that site.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2016 Hyperlinks Won't Open
    By drew.lewis.rtr in forum Excel General
    Replies: 4
    Last Post: 08-17-2017, 12:25 AM
  2. Replies: 2
    Last Post: 11-07-2016, 11:24 AM
  3. Merge two workbooks Excel 2016
    By jamessmckie in forum Excel General
    Replies: 1
    Last Post: 07-01-2016, 10:11 AM
  4. Excel 2016 - Linking workbooks
    By pccamara in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2016, 01:38 PM
  5. Excel 2016 15.17 on Mac - Controls not working
    By MRock in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 01-07-2016, 08:50 PM
  6. Replies: 2
    Last Post: 10-30-2014, 11:10 AM
  7. why do 5 workbooks open when I double click one
    By dnlighting in forum Excel General
    Replies: 2
    Last Post: 08-15-2005, 04:05 PM

Tags for this Thread

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