+ Reply to Thread
Results 1 to 2 of 2

VBA - Making column's mandatory

  1. #1
    Registered User
    Join Date
    12-30-2010
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    58

    VBA - Making column's mandatory

    Does any know a VBA to make colums mandatory,

    What i want is a VBA that, if a user enters information into cell B2 then they have to enter information into C2 D2 and E2 and if the try and save it without this information an error message pops up. But the same if they try and enter information into C2 - B2 D2 and E2 need to be populated. is this possable?

    Please let me know if this is not clear?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VBA - Making column's mandatory

    snoopy1461,

    For forcing that data be entered or not entered, its best to protect the sheet and then have a userform for data entry. Attached is an example. The worksheet protection password is: 123

    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files
    Last edited by tigeravatar; 06-21-2011 at 01:44 PM. Reason: Commented code in sample workbook

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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