Results 1 to 7 of 7

Macro to show a message when some cells in between before the last cell are empty

Threaded View

Swagata Macro to show a message when... 11-23-2012, 01:41 AM
:) Sixthsense :) Re: Macro to show a message... 11-23-2012, 02:09 AM
Swagata Re: Macro to show a message... 11-23-2012, 02:31 AM
:) Sixthsense :) Re: Macro to show a message... 11-23-2012, 03:07 AM
Swagata Re: Macro to show a message... 11-23-2012, 05:49 AM
:) Sixthsense :) Re: Macro to show a message... 11-23-2012, 06:21 AM
Swagata Re: Macro to show a message... 11-26-2012, 02:03 AM
  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    23

    Macro to show a message when some cells in between before the last cell are empty

    Hi All,

    I have a spreadsheet which has multiple rows and columns. Now I want to throw one single error message for all blank cells before the last cell with value. Below is a sample table:
    sun mon
    tue wed
    thur
    fri sat

    Currently I have the the below macro which shows popup message for every blank cell before last cell:
    For count3 = 1 To LastCol
            For RowCount = 8 To ws.Cells(Rows.Count, count3).End(xlUp).Row
           
            If Cells(RowCount, count3) = "" Then
                MsgBox ("Please give inputs in sequentially. Cells cannot be empty in between.")
            End If
            
           Next
        Next
    Can any one please help me with these?
    Last edited by vlady; 11-23-2012 at 03:45 AM. Reason: code tags

Thread Information

Users Browsing this Thread

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

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