+ Reply to Thread
Results 1 to 5 of 5

VBA not activating workbook fully

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Worcester, England
    MS-Off Ver
    2013
    Posts
    4

    VBA not activating workbook fully

    Hi
    i am hoping someone can help as this is driving me mad.
    I have VBA code that opens a workbook and simply want the user to be able to type in that workbook sheet straight away.
    this was working before "upgrading" to 2013.
    what happens is the other workbook opens no problem and is in the foreground but when you try and type it gives the error that the sheet is protected (the other workbook when the code is located is protected) so is trying to enter text in the other workbook. i have tried activating the workbook after the open line, selecting the sheet and everything else that i can think of.
    i have found that you have to select the other workbook and then go back to the other one to enable you to type into it..
    if this is not clear please let me know
    thank you in advance

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: VBA not activating workbook fully

    That line of code is not your problem. However, WORKBOOKNAME.xlsm should be the active workbook immediately after that line executes. But if you have other code that puts the focus on another workbook, or another sheet in the same workbook, that is not the visible sheet, then you would get the results you describe. It is difficult to analyze the actual cause without the rest of the code after the open statement.

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Worcester, England
    MS-Off Ver
    2013
    Posts
    4

    Re: VBA not activating workbook fully

    Hi
    thanks for the reply.
    i have even got to the point of leaving the code to try and resolve it. it is now
    Please Login or Register  to view this content.
    and still behaving the same

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: VBA not activating workbook fully

    You're opening it "Read Only" and typing into it? It will not save the changes if it is read only. Take the ReadOnly off and see if you get the message.

  5. #5
    Registered User
    Join Date
    10-15-2014
    Location
    Worcester, England
    MS-Off Ver
    2013
    Posts
    4

    Re: VBA not activating workbook fully

    Yes read only and there is further code in that workbook to email the sheet off (which works fine). it is used by many people and is opened read only to ensure that the users and not saving details into it. The read only has no effect

+ 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. VBA to fully lock down the workbook after a specified date
    By Sean Gillan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2015, 08:04 PM
  2. Is it possible to fully automate my workbook?
    By ebes69 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2014, 06:17 PM
  3. VBA to fully automate a complicated workbook with multiple sheets
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2014, 11:01 AM
  4. [SOLVED] How to open a workbook without activating it
    By CrispinB in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-11-2012, 11:10 PM
  5. Activating Workbook
    By szabo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2008, 11:47 PM
  6. Re: Working within a workbook without activating it?
    By richardfisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2006, 08:10 PM
  7. [SOLVED] activating a workbook
    By VB Script for Excel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-22-2006, 04:10 AM

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