+ Reply to Thread
Results 1 to 4 of 4

Delete empty cells VBA script

  1. #1
    Registered User
    Join Date
    08-09-2024
    Location
    Germany
    MS-Off Ver
    365 Business
    Posts
    2

    Delete empty cells VBA script

    Hi, I´m hoping for help with this VBA-script
    How kann I modify this script to make it work? Currently when I run the script, some empty cells in that column are removed, but others aren´t, even though I checked whether they are empty or not.


    Please Login or Register  to view this content.
    Next i
    End Sub


    Thanks in advance for your help!
    Last edited by Noahsvb5; 08-09-2024 at 05:14 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: Delete empty cells VBA script

    You've just marked this as solved - would you please share your solution? Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-09-2024
    Location
    Germany
    MS-Off Ver
    365 Business
    Posts
    2

    Re: Delete empty cells VBA script

    Please Login or Register  to view this content.
    The solution was to go from the last row up to the first one and not the other way around. Now it works.
    Last edited by AliGW; 08-09-2024 at 05:23 AM. Reason: Code tags added - please review the forum guidelines.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: Delete empty cells VBA script

    Thank you. And welcome to the forum.

+ 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] VBA script that will allow me to copy the unit # in column C to the empty cells below unti
    By FFarah in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2023, 07:05 PM
  2. [SOLVED] VBA Script to Delete empty rows
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 02:34 PM
  3. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  4. Run a macro outside Excel from VB script file in an empty sheet all over the cells.
    By Deepak_MSBI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2013, 09:34 AM
  5. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  6. [SOLVED] Program a conditional script that will delete entire row if cell in column B is empty
    By Rabbitstew in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2012, 01:54 PM
  7. [SOLVED] VBA script to delete content in merged cells.
    By Calle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2006, 10:10 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