Results 1 to 19 of 19

Run Macro only if Column is Blank

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Run Macro only if Column is Blank

    Hi,

    I have data in Column P & Column Q. Unless I clear the data in that cell by removing manually, I do not want macro to proceed further.

    E.g.
    1) If there is a value in Cell P & Q, and if I run macro. I need a popup msg that "Complete the manual checking"
    2) If there is no value in Cell P & Q, then I only I should be allowed to execute my next macro which is

    Application.ScreenUpdating = False
    Sheets("Dump").Activate
    Sheets("Dump").Range("R6").Select
    Do Until ActiveCell.Value = ""
        For Each Cell In Sheets("All Earnings").Range("C2:C" & Sheets("All Earnings").UsedRange.Rows.Count + 1)
            If Cell.Value = ActiveCell.Value And Cell.Offset(, 4).Value = "Yes" Then
            Sheets("Data for Move").Range("A" & Rows.Count).End(3)(2) = " "
            ActiveCell.EntireRow.Copy Sheets("Data for Move").Range("A" & Rows.Count).End(3)(2)
            End If
        Next Cell
        Sheets("Dump").Activate
        ActiveCell.Offset(1).Select
    Loop
    Application.ScreenUpdating = True
    Please assist.

    Thanks
    Last edited by shiva_reshs; 09-19-2013 at 12:49 PM. Reason: Title Change
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Cell referenced in formula has no information displayed (shows blank), return blank cell
    By nunayobinezz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2013, 04:51 PM
  2. If cell blank OR another cell blank then show blank, if not display value
    By stevop622 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-09-2013, 04:07 AM
  3. [SOLVED] 1 or blank cell pulls exact text or leaves cell blank
    By sharpmel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-30-2012, 12:20 PM
  4. [SOLVED] If one cell contains #, & other cell is blank, show message & require blank be resolved
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-19-2012, 02:23 PM
  5. Macro that finds first blank cell or first blank row
    By SimonTheWee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2011, 11:04 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