How to prevent somone from Changing the Name Range

Bisitman

New Member
Joined
Aug 15, 2011
Messages
5
Hi,

I have a excel workbook which has a number of name ranges within it which are regonized as part of a macro when it run.

The problem i have is that when people fill it in they sometimes Cut&Paste cells over the named cell/range which causes the named range to be edited by the cell that was pasted in it which results in the named range being overwritten.

I was wondering if there was a macro I could write to prevent this from happening or at least warn the person to prevent them and that they should use paste special and paste the values.


Thanks!

Stephan
 

Barbara Excel

New Member
Joined
May 15, 2011
Messages
18
Hi

I would lock the cells using the available security options in Excel

Hope that helps

Barbara Excel
 

Bisitman

New Member
Joined
Aug 15, 2011
Messages
5
HI,

Thanks for the reply! That would be the answer to the question but I just realised that this wasn't the question I meant to ask!

I did lock the cells and have them password protected but people seem to eventually figure it out. So what I was looking at was the possibility to copy name ranges from an excel workbook (which would be the clean template) onto another one (the one that has been edited by the user)

i.e. if I was to give some tempalte.xls and they return me templateedit.xls I would like to copy all the name ranges from template.xls onto templateedit.xls without changing the values. If that makes sense...
 

Forum statistics

Threads
1,082,276
Messages
5,364,196
Members
400,786
Latest member
ismi88

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top