+ Reply to Thread
Results 1 to 4 of 4

row values = vbNullString

  1. #1
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    row values = vbNullString

    I have a delete empty row function. This works fine ! little modification is necessary. Now he delete a line when the first cell is empty. He should verify the values of a row or at least a range. I tried rows(i4Row), not working.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Use COUNTA to see if any cells in the row have a value. Something like

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    last row

    Hi roy,

    its a nice proposal, thanks. He delete the empty rows but finally he crashed.
    error "Method range failed". Any id ?

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    either mothod should work without error

    One possible problem is that i4row looks like an Interger type variable & lLR looks like a Long type variable
    Suggest change i4Row to l4Row & declare it as

    Please Login or Register  to view this content.
    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.

+ 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