+ Reply to Thread
Results 1 to 4 of 4

VBA - Take string from cell A3, then A4, then A5... until Ax is empty

  1. #1
    Registered User
    Join Date
    07-09-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    VBA - Take string from cell A3, then A4, then A5... until Ax is empty

    Hi all,

    I feel like I'm so close to get this done but I can't figure out how to do the last step.


    Long story short, I'm writing a code to delete data in some tabs.

    I want the code to look in my mapping tab and then for each cell until the cell is empty to go to the related tab and delete data.

    the part I'm struggling with is the one below in red. I can't figure how to use A3 string data the 1st time the loop runs, then A4, then A5 etc.

    I've looked online and in the forum but didn't find anything so hopefully you will be able to help


    Many thanks for your help!


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: VBA - Take string from cell A3, then A4, then A5... until Ax is empty

    Try this instead...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-09-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Re: VBA - Take string from cell A3, then A4, then A5... until Ax is empty

    Thank you so much!

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

    Re: VBA - Take string from cell A3, then A4, then A5... until Ax is empty

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Empty string vs cell format
    By bvwalker1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2019, 04:30 PM
  2. Replies: 2
    Last Post: 01-02-2015, 08:57 PM
  3. [SOLVED] If cell string does not contain a number make cell empty
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2014, 08:32 PM
  4. [SOLVED] Conditional String Concatenation based on different cell being empty or not
    By MrGadget6977 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 01:14 PM
  5. Find a cell that has a null value, and replace with an empty string.
    By skania in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2013, 12:49 PM
  6. How not to display a string from an empty cell
    By Soooooz01 in forum Excel General
    Replies: 5
    Last Post: 03-26-2012, 08:32 AM
  7. [SOLVED] Copy a string text to cell if another cell not empty
    By Pasmatos in forum Excel General
    Replies: 0
    Last Post: 11-25-2005, 12:00 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