+ Reply to Thread
Results 1 to 2 of 2

I want to stop a macros based on people not filling in the information

Hybrid View

watermark123 I want to stop a macros based... 03-02-2018, 08:09 AM
ranman256 Re: I want to stop a macros... 03-02-2018, 08:44 AM
  1. #1
    Registered User
    Join Date
    03-02-2018
    Location
    Northamptonshire
    MS-Off Ver
    excel 2010
    Posts
    1

    I want to stop a macros based on people not filling in the information

    I have created a macro to move the information from one sheet to another sheet i.e. Range("e4:AI4").Copy Sheets("Completed List").Range("A1048576").End(xlUp).Offset(1, 0)

    I now what to not allow the users to use this macro unless all the information is filled in – is this possible and if so how? I have tried to copy a few ways from post on here but nothing works

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,192

    Re: I want to stop a macros based on people not filling in the information

    Now this code is based on FORM entry, but you can adjust it if the user is entering on a sheet.

    I do my checks via code (not in the field property)
    All in 1 place, easier to change...say a SAVE_click event...

    usage:
    if IsValidForm() then SaveData


    Private Function IsValidForm() As Boolean
    Dim vMsg
    Select Case True
       Case IsNull(dtpWeekOf)
          vMsg = "Date field missing"
       Case IsNull(cboUser)
          vMsg = "User name is missing"
       Case IsNull(txtEmail)
          vMsg = "Email field is missing"
    End Select
    If vMsg <> "" Then MsgBox vMsg, vbCritical, "Required Field"
    IsValidForm = vMsg = ""
    End Function

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. filling information from one cell and filling another.
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  2. filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. filling information from one cell and filling another.
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  5. filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. [SOLVED] filling information from one cell and filling another.
    By Dianne in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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