Results 1 to 16 of 16

UserInterfaceOnly Issues....new issue (I think)

Threaded View

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    14

    UserInterfaceOnly Issues....new issue (I think)

    I have a sheet which has protection on the workbook and on the sheets. It uses autofilter and also outlining, and the vba needs to read and write some cells.
    Currently I have "nested" protect/unprotect routines. I was trying to utilise UserInterfaceOnly in order to economise the code, but it is not working.
    In fact, when I input the code, the keyword is not even being capitalised!!
    The boolean parameter is being capitalised and the text colour changed to blue, as per normal, but there is no capitalisation on the UserInterfaceOnly statement, and the statement appears to have no effect in the code. Here is the relevant line of code.....

    For Each ws In ThisWorkbook.Worksheets
        With ws
        .Protect Password:="*****", AllowFiltering:=True, userinterfaceonly:=True
        .EnableOutlining = True
        End With
    Next ws

    This is in the Workbook_open() module. What am I doing wrong? Why is the parameter not capitalising as it should and why is it not effective?
    I have searched everywhere to see if his problem is common or if I am using the wrong syntax and can't seem to find anything.

    Greatly appreciate any assistance.
    Thanks.
    Littlenuts......
    Last edited by Littlenuts; 01-28-2014 at 03:54 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to list only top 10 issue out of 50 issues
    By koi in forum Excel General
    Replies: 4
    Last Post: 01-16-2013, 03:38 PM
  2. [SOLVED] Rounding Issues in Excel formulas or issue with leap year?
    By raw_geek in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2013, 06:53 AM
  3. UserInterfaceOnly
    By justinharris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2011, 04:55 PM
  4. [SOLVED] help! user form issues; can't find subroutines; appearance issue
    By in-over-his-head-bill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2006, 05:30 PM
  5. [SOLVED] UserInterfaceOnly
    By D.Parker in forum Excel General
    Replies: 1
    Last Post: 05-17-2005, 04:06 PM

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