?
Solved

Macro to prevent format change

Posted on 2013-11-24
6
Medium Priority
?
225 Views
Last Modified: 2013-11-26
Can we have a macro, probably trapped by worksheet_change event which will prevent any changes like color, borders, etc to a worksheet? It would be best if it works like a data validation giving a message box to the effect.
0
Comment
Question by:Saqib Husain, Syed
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
samrad1 earned 2000 total points
ID: 39673830
Hey!

You can do this w/o macros and use sheet protection which will prevent formatting ect. Just goto the review tab and choose Protect sheet, then at the dialog you can just click ok to protect it w/o a password (or enter a password if you prefer). :-)

Was there a reason you want macros instead?
0
 
LVL 50
ID: 39673841
Bravo samrad1! (Good to see you here!)

I love solutions that can be done by ticking a box instead of writing a macro.

cheers, teylyn
0
 
LVL 43

Author Closing Comment

by:Saqib Husain, Syed
ID: 39673873
Hi, samrad1

I am with teylyn

There was no reason. Just never thought of it. Actually My own spreadsheets have almost no formatting other than bold and borders so I had never had the chance to explore this area.

This assignment is for all employees and I do not want them to muck with the formatting of the timesheets. I am sure protection will work just fine.

Thanks for the effort. How about an intro on your profile?

Saqib
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 2

Expert Comment

by:samrad1
ID: 39674204
Yay! Good to see u 2 on here too! I'll fill out a little something on the profile soon, still getting a feel for everything on here :-)
0
 
LVL 43

Author Comment

by:Saqib Husain, Syed
ID: 39674213
Unless you have already been there you are welcome to join excel experts discussion topic at

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28245882.html#a39670734
0
 
LVL 2

Expert Comment

by:samrad1
ID: 39677194
Oh I haven't, thanks for the link!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question