+ Reply to Thread
Results 1 to 5 of 5

loop continue till last invoice (srv) no. in specific column.

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    India
    MS-Off Ver
    2010
    Posts
    87

    loop continue till last invoice (srv) no. in specific column.

    hi everyone.

    Here I have a macro on the "SRV Format" sheet which generates SRV (Invoice) slip from "Data Register sheet" (Raw Data) one by one. Every time i have to put SRV no. in "H6" cell then click on "Get Data" button then Copy the srv and paste it to "Result" Sheet. It's a lot of work to do. and i know process can be less by vba that is why i am posting it here.

    what i want is when i enter a srv no. 1125 in H6 cell and click on button then macro also generates all the other srv like 1126,1127,1128... one by one and save it to "result" respected format. for Example you can see my attachement and "Result".



    Thanks in advance....
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: loop continue till last invoice (srv) no. in specific column.

    Please find the attached sheet to see if this is what you want.
    I have unmerged the col. B and col. C in the Template sheet to get the desired output (though there must be a way to do this without unmerging the columns, I am not aware of it). I hope its ok with you.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: loop continue till last invoice (srv) no. in specific column.

    Seems double post with solution at: http://www.excelforum.com/excel-prog...l-last-no.html
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    02-22-2013
    Location
    India
    MS-Off Ver
    2010
    Posts
    87

    Re: loop continue till last invoice (srv) no. in specific column.

    yes but little difference...

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: loop continue till last invoice (srv) no. in specific column.

    Hi amarjeet.it

    What is the
    little difference
    ...please explain...
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Copy and paste above row number and continue till end
    By MUNDHRA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2012, 05:01 AM
  2. [SOLVED] Loop till end of the sheet and loop back to first column again
    By smlim7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 10:03 AM
  3. Select a specific column till it identifies blank cell and to format
    By k1234y in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2012, 12:35 AM
  4. Copy Paste and Loop till last column with data
    By eirumba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2011, 07:23 AM
  5. Macro Loop Broken. Detects Max but doesn't continue loop
    By herchenbach in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 12:17 PM

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