+ Reply to Thread
Results 1 to 2 of 2

VBA to Disable Format Painter Tool.

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    1

    Question VBA to Disable Format Painter Tool.

    Hi All,

    Hope you are well, I have a little issue which for the life of me cannot get around.



    I would like to disable the Format Painter tool hopefully by VBA.

    Background:

    I have a protected worksheet, but users need the ability to FILL in the cells. However these cells have individual conditional formatting which will get moved around if they decided to use the Format painter tool. Hence my need for them to only have the ability and access to the FILL colour function.
    Alternatively, If there is an ability to disable all types of formatting and only solely the FILL Colour function available.

    Hope this helps.

    Thanks for your help in advanced.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: VBA to Disable Format Painter Tool.

    Hi vishalrattan - I haven't worked with protected worksheets much, but you could lock the sheet and use a macro to show the Fill Dialog box automatically whenever they select a cell or cells. Right-click on your worksheet Tab, select View Code, and paste the following code in the module that appears. (You'll need to change the password to match yours.) When done, press ALT+F11 to return to Excel.
    Please Login or Register  to view this content.
    The code could easily be modified to respond only to specific cells.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-26-2017 at 08:08 AM.

+ 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. Format painter
    By amandaphs in forum Excel General
    Replies: 3
    Last Post: 02-05-2012, 10:17 AM
  2. Emulate format painter in VBA
    By tapapad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2008, 10:18 AM
  3. how can I use the format painter??
    By hermosilla in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-11-2006, 07:00 PM
  4. Format Painter in VBA?
    By Angelus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2006, 01:35 AM
  5. is there a 'format painter' hotkey?
    By david in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] is there a 'format painter' hotkey?
    By david in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2005, 09:40 PM
  7. [SOLVED] format painter
    By Tom Whitmore in forum Excel General
    Replies: 4
    Last Post: 03-03-2005, 11:06 AM
  8. Disable format painter in excel 2003
    By tenchsama in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-07-2005, 09:06 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