+ Reply to Thread
Results 1 to 6 of 6

VBA Loop until blank cell

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    VBA Loop until blank cell

    The below coding works and carries on looping but i need it to stop when it reaches a blank cell in B column in Sheet1.

    Please Login or Register  to view this content.



    I tried the below but not sure if on right track.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 10-10-2012 at 08:37 AM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Loop until blank cell

    So, you're making us "figure out" what's going on here. You want to add formulas in column B all the way down the column to replace current values Except for the last used cell, probably a "total" cell of some kind. Yes?

    So maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA Loop until blank cell

    Sorry new to forums.
    It currently copies text in Sheet 1 column B into Sheet 2 column A with text in front of orginal copied text.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA Loop until blank cell

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA Loop until blank cell

    Quote Originally Posted by Vikster View Post
    Sorry new to forums.
    It currently copies text in Sheet 1 column B into Sheet 2 column A with text in front of orginal copied text.
    It does? Your code is pasting a formula, so mine is showing another way to do the same thing, but with no loop.

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    Huddersfield, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA Loop until blank cell

    All resolved now thankyou.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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