Results 1 to 3 of 3

How to show report of empty cell in excel

Threaded View

mailtoashok13 How to show report of empty... 05-06-2021, 10:38 AM
Pepe Le Mokko Re: How to show report of... 05-06-2021, 10:39 AM
mailtoashok13 Re: How to show report of... 05-06-2021, 10:43 AM
  1. #1
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    How to show report of empty cell in excel

    I am writing below macros to show which row in which column is blank in alert box but there may be many cells can be empty so user keep clicking on alert box , how can i show it as a report in other sheet which row which column is empty ?

    Sub Loop_Column_Row()
        
        Dim lRow, lCol As Long
        
        'Find the last non-blank cell in row 1
        'This assumes that the first row has column headers
        lCol = Cells(1, Columns.Count).End(xlToLeft).Column
        
        'Loop through columns
        For x = 1 To lCol
            'Find the last non-blank cell in the column
            lRow = Cells(Rows.Count, x).End(xlUp).Row
        
            'Loop through rows
            'Start from row 2 as row 1 is the row with headers
            For y = 2 To lRow
                If Cells(y, x) = "" Then
                    'Display message box when empty cell is found
                    MsgBox "Cell in Row: " & y & " Column: " & x & " is empty"
                    'Stop executing the method when 1st empty cell found
                    Exit Sub
                End If
            Next y
        Next x
      
    End Sub
    Last edited by mailtoashok13; 05-06-2021 at 10:43 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Show cell empty if result is an error due to empty source
    By jackmcguigan1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2016, 09:54 AM
  2. [SOLVED] If cell is empty = show nothing
    By mack4n in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2015, 02:29 AM
  3. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  4. [SOLVED] Show result Cell as Empty If.....
    By JRidge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2014, 04:56 AM
  5. show empty cell if result is more than 20
    By fargobride in forum Excel General
    Replies: 4
    Last Post: 10-24-2009, 09:14 PM
  6. if no data, then show empty cell
    By BongoBill in forum Excel General
    Replies: 2
    Last Post: 07-31-2009, 12:02 PM
  7. Replies: 0
    Last Post: 03-29-2005, 10:06 AM

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