+ Reply to Thread
Results 1 to 2 of 2

Stop running till the columns are deleted!

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unhappy Stop running till the columns are deleted!

    I have an excel spreadsheet with a lot of empty columns. I have a main macro that has some lines of codes, then calls a macro that deletes empty columns, then runs more macros. The problem is that the columns do not finish deleting before other macros begins to run. I have tried using Application.Wait, but that causes the columns to stop deleting. If I run the macros one by one, each one works perfectly. When I Call them in the main macro, bad things happen. Very bad. Here is the main macro.

    Please Login or Register  to view this content.
    Here is the macro for DelEmptyCols

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Stop running till the columns are deleted!

    Try this:

    Where in B columns are blank cells of rows that need to be deleted...
    Reverse Columns("B:B") to Rows(2:2) if you want opposite

    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

+ 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