saltire1963
Board Regular
- Joined
- Aug 11, 2014
- Messages
- 69
Is there a way I can stop work colleagues from deleting rows from a file they have opened other than the rows they add after opening it? What I mean is, it is important that the data in the file when they open it cannot be deleted. I thought about creating a variable called lastRowNumberOnOpening when the workbook is opened and making it available to other modules so I could do something like
If finalrow - lastRowNumberOnOpening < 1 Then .... "cannot delete rows you have not created". I think this means that the variable lastRowNumberOnOpening should be created when the workbook is opened, but have discovered that a public variable is only applicable to a standard module sub and not one that is when the workbook is opened. Any suggestions?
If finalrow - lastRowNumberOnOpening < 1 Then .... "cannot delete rows you have not created". I think this means that the variable lastRowNumberOnOpening should be created when the workbook is opened, but have discovered that a public variable is only applicable to a standard module sub and not one that is when the workbook is opened. Any suggestions?