Results 1 to 3 of 3

Need Protecting/locking of headers from overwrite by userform.

Threaded View

  1. #1
    Registered User
    Join Date
    07-18-2008
    Location
    Washington
    Posts
    36

    Need Protecting/locking of headers from overwrite by userform.

    I am using a Userform for data review and entry (row, by row) with the rows selectable by a dropdown menu in the userform.

    The issue/problem:

    When someone inputs something in the "Number" field ( which selects the row to be reviewed) that is not an actual existing number,.. (like say they accidentally backspace or hit "1" overwriting that number,) then their input overwrites the header of the column modified.

    So I need to protect the headers at very least, and would like to actually be able to protect selected columns and even Cells or Rows ideally.

    But when I do it using the built in "protection" cell formatting etc. Which I am able to do by intentionally "unprotecting" the cells I want to be modifiable and then protecting the wks, it "errors" announcing that a protected cell was attempted to be modified, and exits the userform.

    I have protected portions of the userform from being modifiable, by attributing the "Locked" option in the userform design as "True" but cannot do that with a combobox with a selectable dropdown. Plus it would be nice to actually lock the wks even when the userform is not being used.

    Im sure this question is not articulated as well as it could be.

    Simply..

    I need a way to protect certain cells on a .wks in such a way that it does not interfere in any way with the use of a userform for input.

    Attatched is an old example of the userform and wks.

    If you change the NUMBER value in the userform, and then hit enter and adjust any other value in the form and hit "Close" on the userform you should see that whatever you modified has been written to the header of the column of the category you modified.

    Hence my delima.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Background Macro with userform
    By excel_guy49 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2008, 03:35 AM
  2. Execute code from auto generated buttons in a userform
    By Tellus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2008, 09:07 AM
  3. Editing columns through Userform; "Dictionary Editor"
    By wali in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-04-2008, 03:44 PM
  4. Keep Modal UserForm Alive after closing 2nd userform using 2007?
    By ShredDude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2008, 03:12 PM
  5. UserForm Code Question/Help
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2006, 02:29 AM

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