+ Reply to Thread
Results 1 to 4 of 4

Selection Delete

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Selection Delete

    I have a situation where I have data in three columns. I have empty cells that I want to be able to delete for printing purposes. I am using the following code to remove the blank cells but the method I am using is not efficent. (I am having to issue the selection.delete command multiple times to be able to delete all the empty cells.) It works but at the same time it is very inefficent. Any suggestions would be greatly appreciated.



    Please Login or Register  to view this content.

    Thanks,

    Met

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Selection Delete

    If you want to delete blank cells in the current selection you could try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: Selection Delete

    That only clears part of the data. I have to basically repeat the command multiple times to clear all the data. (Not sure why?)

    Thanks anyway.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Selection Delete

    Is this selecting the cells you want to delete?
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. delete selection with VBA
    By Danielle22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2013, 03:55 AM
  2. [SOLVED] Delete blank column & Row in selection
    By shaileshgavanang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2012, 12:43 AM
  3. Delete rows in a selection?
    By scottkrise05 in forum Excel General
    Replies: 1
    Last Post: 07-08-2010, 08:49 PM
  4. Need to delete rows relative to selection
    By ratchick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2005, 12:55 PM
  5. [SOLVED] selection.delete skips a column
    By Geographer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2005, 05:25 PM

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