Consulting

Results 1 to 2 of 2

Thread: VBA editing automatically comments in protected sheet

  1. #1
    VBAX Newbie
    Joined
    Feb 2019
    Posts
    3
    Location

    VBA editing automatically comments in protected sheet

    Hello,

    I wrote a calendar for meeting-room reservations.
    One sheet is for one month with all the rooms an schedules.
    So in the top rows are the weekdays and the row below the date.

    example:
    Monday
    23

    In the first column are the names of the rooms and the schedules.

    Example:

    Room 1
    0800-1000
    1000-1200


    As the workbook is saved on a server and can be used by more persons, I had now the problem that probabely someone deleted a reservation.

    I'm looking now for a VBA that works on a protected sheet like this.

    By changing the value of a cell: a comment isautomatically inserted with Name of user, date an time.
    If its changed again, the comment ist edited with the new username, date and hour, without deleting the first.

    It should not be possible to edit or delete the comments manually.

    Do you think that this would be possible?

    I'm using Office 2016

    Thank you

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,874
    This is a minefield.
    Have a play with the attached.
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •