Hi all,
I'm finishing up on a project and applying "Security" I'm using Application.Undo in many shapes and forms to create a log and to not allow the users to change the layout, but allow them to edit the data..
Question 1:
I have an admin sheet (Sheet1) with something like 20 look up tables but there are 4, which are used with combo boxes in userforms, and I would like to make sure the users can't delete them, I have a
and I would like to do an if block.. like: if "Table1" or "Table2" or "Table3" or "Table4" doesn't exist then Application.Undo
but I don't know how to do this.. possibly without using "On Error GoTo"...
Can I get some help with it please?
Question 2:
I noticed, when I copy my project over to another computer and open it up for the first time, my named range (TAX) disappears from the name manager (and my formulas give the Name error).. so I would like to add a few lines to my
to check if this name exists on the specific range (Sheet1.Range("C2")), and if it doesn't, it creates it. Cause the file will be located on a shared drive for the users and it would be awkward if I had to add the range 1 by 1 every time someone works with it for the first time.
Could I ask for help whith this please?
Please help!
Thanks
I'm finishing up on a project and applying "Security" I'm using Application.Undo in many shapes and forms to create a log and to not allow the users to change the layout, but allow them to edit the data..
Question 1:
I have an admin sheet (Sheet1) with something like 20 look up tables but there are 4, which are used with combo boxes in userforms, and I would like to make sure the users can't delete them, I have a
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
and I would like to do an if block.. like: if "Table1" or "Table2" or "Table3" or "Table4" doesn't exist then Application.Undo
but I don't know how to do this.. possibly without using "On Error GoTo"...
Can I get some help with it please?
Question 2:
I noticed, when I copy my project over to another computer and open it up for the first time, my named range (TAX) disappears from the name manager (and my formulas give the Name error).. so I would like to add a few lines to my
Code:
Private Sub Workbook_Open()
Could I ask for help whith this please?
Please help!
Thanks