+ Reply to Thread
Results 1 to 6 of 6

Delete blank rows on manual selection

  1. #1
    Registered User
    Join Date
    12-01-2006
    Location
    Alabama, USA
    MS-Off Ver
    MS Office 10
    Posts
    28

    Delete blank rows on manual selection

    Hi all,

    In the code below I am using the Worksheets().Range() method to delete blank rows. What would be the code that when I manually select a column on whichever worksheet I choose all blank rows will be deleted? This code as it stands now is working for Worhsheet(1), but I can't go to Worksheet(2) without changing the code.

    Also, I would like to put in a vbYesNo to save the worksheet. I want to ask if the user wants to save the changes. If not the changes are cancelled. How would I do this?

    Thanks in advance,

    JDB


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Just modify line as follows :

    Please Login or Register  to view this content.
    HTH
    Carim

  3. #3
    Registered User
    Join Date
    12-01-2006
    Location
    Alabama, USA
    MS-Off Ver
    MS Office 10
    Posts
    28

    Complie error

    Hi, thanks Carim for the help. I'm getting a complie error on the ActiveWorkSheet statement. It's telling me variable not defined. I'm not sure why.

    JDB

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Oops ... Sorry ...

    ActiveSheet !!!
    and not ActiveWorksheet ...

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    12-01-2006
    Location
    Alabama, USA
    MS-Off Ver
    MS Office 10
    Posts
    28

    That worked

    Carim,

    Thanks, that got it working.

    JDB

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed.

    Thanks for the feedback

    Carim

+ 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