+ Reply to Thread
Results 1 to 4 of 4

Macro to delete entire column if no entries are made

  1. #1
    Registered User
    Join Date
    12-25-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Outlook 2010
    Posts
    6

    Macro to delete entire column if no entries are made

    Hello friends,

    Can you help me with the following?
    I am trying to create a macro that will delete an entire column if no entries are made from cell B6 and down. B1:B4 is a header.
    If there is at least one entry, then the macro should not delete the column.
    If there is an entry, then the entire B column should be deleted, including B1:B4.

    So far this is what I've got:
    Please Login or Register  to view this content.
    This doesn't work for me because it's focusing on the entire column and not a range, like B6 and down.

    I've tried incorporating this but it's not working either :S
    Please Login or Register  to view this content.
    Can someone please help me? If you need more info, please let me know. I can't seem to get this to work!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Macro to delete entire column if no entries are made

    You may try something like this....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    12-25-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Outlook 2010
    Posts
    6

    Re: Macro to delete entire column if no entries are made

    That worked incredibly well!

    Thank you sktneer!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Macro to delete entire column if no entries are made

    You're welcome. Glad I could help.
    And thanks for the feedback.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

+ 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. [SOLVED] Macro to Delete Entire Row Based on Formula in Given Column
    By datutt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2015, 10:12 PM
  2. Macro code to delete entire row if cell in column A is equal to a value
    By mm671750 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2014, 02:54 PM
  3. Macro code to delete entire row if the cell in column C = 0
    By glock9mm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2013, 02:50 PM
  4. [SOLVED] Combine entries and delete entire rows
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-09-2012, 12:01 PM
  5. Macro to search one column for value and delete entire row if there
    By MCONWAY in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2012, 06:00 PM
  6. Macro (Delete Entire row Cell in column R is empty)
    By andrewvt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2011, 07:06 AM
  7. How do you delete entire column with Macro?
    By geng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2010, 09:26 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