+ Reply to Thread
Results 1 to 2 of 2

VBA not working on protected Sheet - II

  1. #1
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    304

    VBA not working on protected Sheet - II

    Hi all,

    I recently posted a similar issue to this but did not receive a workable solution.
    So I am hoping a second different post may locate someone to fix please.

    The attached Sheet works fine without Password protection
    But when I protect, I get the dreaded
    1004 Run-Time Error - Unable to set the Name property of the Font Class.

    Debug points to the code line Target.Font.Name = "Arial"
    Screen pics are pasted into the attached sheet.

    A solution would be appreciated please.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: VBA not working on protected Sheet - II

    Change the password to suit.


    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. [SOLVED] VBA not working on protected Sheet
    By VisionSmart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2018, 09:35 PM
  2. hide and protected sheet macro not working
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2017, 01:49 PM
  3. Range.Autofilter not working on protected sheet
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2014, 03:13 AM
  4. [SOLVED] Way to Get Around Macros Not Working in Protected Sheet?
    By lyndy256 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2013, 10:12 PM
  5. Tab Key is not working when sheet is protected
    By anwitha in forum Excel General
    Replies: 1
    Last Post: 06-01-2012, 08:22 AM
  6. Macro no longer working once sheet is protected
    By switchblade79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2012, 01:52 PM
  7. Macro not working when sheet is protected.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2011, 06:10 AM

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