+ Reply to Thread
Results 1 to 3 of 3

Workbook functionality not working after reopening?

  1. #1
    Registered User
    Join Date
    09-22-2010
    Location
    Odense, Denmark
    MS-Off Ver
    Excel 2003/2007
    Posts
    4

    Workbook functionality not working after reopening?

    This is my first project working with Excel and VBA. It’s been fun… until now.
    I have a workbook with several sheets filled with data. In the workbook I use, among other things, drop down lists, grouping and protection functionality. It all looks fine after I run the code, then I save and close the workbook. Next time I open the workbook, suddenly I can’t group/ungroup (+/-) and in one of the sheets (the one with most rows) the drop down lists suddenly stop being there?
    I use allowformattingrows:=true, which works just after I run the code and all of the drop down lists are there. I tried to run the protection code on workbook_open event, but it didn’t help.

    Heres the protection code:
    ActiveSheet.Protect DrawingObjects:=True, Contents:=True, userInterfaceOnly:=True, Scenarios:=True, Password:="kogj", AllowFormattingRows:=True, AllowFormattingColumns:=True, AllowFiltering:=True

    What can be wronge? Thanks for the help.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Workbook functionality not working after reopening?

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-22-2010
    Location
    Odense, Denmark
    MS-Off Ver
    Excel 2003/2007
    Posts
    4

    Workbook functionality not working after reopening?

    Hello Forum
    This is my first project working with Excel and VBA. It’s been fun… until now.
    I have a workbook with several sheets filled with data. In the workbook I use, among other things, drop down lists, grouping and protection functionality. It all looks fine after I run the code, then I save and close the workbook. Next time I open the workbook, suddenly I can’t group/ungroup (+/-) and in one of the sheets (the one with most rows) the drop down lists suddenly stop being there?
    I use allowformattingrows:=true, which works just after I run the code and all of the drop down lists are there. I tried to run the protection code on workbook_open event, but it didn’t help.

    Heres the protection code:
    Please Login or Register  to view this content.
    What can be wronge? Thanks for the help.

+ 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