+ Reply to Thread
Results 1 to 7 of 7

Macro to loop untill zero value

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Macro to loop untill zero value

    Hi,
    I am need of some assistant, please could some help out.

    I have recorded a macro but how do i make loop over and over until it get 0 value.

    In MULTI LINE sheet there is a button which user press to activate macro.

    as the button is pressed information from MULTI LINE BREAK DOWN sheet is copied over to PREVIEW MULTI LINE LABEL sheet

    Example - MULTI LINE BREAK DOWN sheet row2
    Column A - goes to cell A2 in PREVIEW MULTI LINE LABLE
    Column B - goes to cell B3 in PREVIEW MULTI LINE LABEL
    Column C - goes to cell A1 in PREVIER MULTI LINE LABEL

    Example - MULTI LINE BREAK DOWN sheet row3
    Column A - goes to cell E2 in PREVIEW MULTI LINE LABLE
    Column B - goes to cell F3 in PREVIEW MULTI LINE LABEL
    Column C - goes to cell E1 in PREVIER MULTI LINE LABEL

    In short
    ROW2 Info goes to Left Hand side
    ROW3 Info goes to Right Hand side
    move down
    ROW4 Info goes to Left Hand Side
    ROW5 Info goes to Right Hand Side

    My MACRO codeing is

    Please Login or Register  to view this content.
    This codeing is up to 6 rows. In MULTI LINE BREAK DOWN sheet i can have to 60,80,130,etc rows worth of information. In this sheet column A has zero value then it should stop.

    Can someone please assist me. any help would be appricated.

    I have attached file.
    Attached Files Attached Files
    Last edited by VBA Noob; 02-10-2009 at 02:48 PM.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Macro to loop untill zero value

    Hi
    try the macro in the attached file
    Ravi
    Last edited by royUK; 02-10-2009 at 08:12 AM.

  3. #3
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Macro to loop untill zero value

    Hi Ravi,

    As per your post I tried the file out nothing seem to have changed, is excatly same as how i loaded it.

    If anyone can assist me.

    Warm Regards

  4. #4
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Macro to loop untill zero value found. HELP

    Hi

    Could someone please assist me with my problem above.

    Warm Regards

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Macro to loop untill zero value

    See if this points you in the right direction

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Re: Macro to loop untill zero value

    Hi VBA Noob,

    I pasted your solution, but error highlighted the line below.

    Please Login or Register  to view this content.
    Many thanks for helping get through my problem.

    Warm Regards
    Last edited by coolhit; 02-10-2009 at 05:42 PM. Reason: Forgot to tag

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Macro to loop untill zero value

    Try amended code

    Please Login or Register  to view this content.
    VBA Noob
    Last edited by VBA Noob; 02-10-2009 at 06:34 PM.

+ 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