+ Reply to Thread
Results 1 to 3 of 3

prompt user to fill out particular cell

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    2

    prompt user to fill out particular cell

    I dont even really know how to word this but I'll give it a go!

    What Im looking for, if possible, is to get what you get with a lot of online forms, where they require you to fillout certain fields.

    I need my agents to have no choice but to fill out their names and date on their sales sheets. Can I have them not be be able to save a sheet until they have entered this info. And maybe have a dialog/warning box letting them know that they haven't done this when they try to save their spreadsheet.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You will need to use a macro

    The problem is that it will not work if macro security setting is high

    The code works on a sheet called Sheet1 & looks at A1 & A2

    'These instructions pre typed & are worded to cater for the novice programmer

    'To install macro to correct location

    'Copy this macro
    'GoTo Excel
    'Open VB Editor by pressing Alt + F11
    'Just below the menus & toolbars on the left you should see Project - VbaProject window
    'In this window you will see ThisWorkbook
    'double click on ThisWorkbook - opens ThisWorkbook module sheet
    'Paste macro code into big window on right

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
       With Sheets("sheet1")
          If .Range("a1").Value = "" Or .Range("a2").Value = "" Then
             Cancel = True
             MsgBox "Please Fill In Name & Date", vbInformation
          End If
       End With
    End Sub
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    08-09-2007
    Posts
    2

    awesome...

    Thanks sooo much, I can finally control these agents at work...lol

+ 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