+ Reply to Thread
Results 1 to 9 of 9

Invoice sheet using some vba codes

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Invoice sheet using some vba codes

    Hi,

    Am developing an Invoice sheet for my customers who are hiring Taxi from my company.
    I need to save some of the datas to another sheet in a single row.
    Once the Invoice is made it should be saved and the contents should be cleared.

    I have attached my sample file with explanations.

    Please help.Invoice file.xlsx

  2. #2
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Invoice sheet using some vba codes

    May be something in this kind?Invoice file2.xlsm

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Invoice sheet using some vba codes

    Yeah this is what I was looking for.

    Now I need to copy the cell values to another sheet based on the vehicle number.

    Suppose if the vehicle number is " TN 33 AR 4174" the details should be copied to the worksheet named "AR 4174".

    Can this be made?

  4. #4
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Invoice sheet using some vba codes

    Catch it! I hope it was all you need Invoice file2.xlsm

  5. #5
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Invoice sheet using some vba codes

    I Caught it IgorSharov.

    This is what I need actually.

    Thanks for the help.

  6. #6
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Invoice sheet using some vba codes

    I have made some modifications to the file as per my requirements.
    The data from the main sheet are copied to the next sheet according to the vehicle number.
    Now the data Ranges from A to O.
    I have other datas in the Range from P to AF.

    TheLastRow = Worksheets(VN_Sheet).UsedRange.SpecialCells(xlCellTypeLastCell).Row + 1

    This code checks the last usedRange.
    Now I want to modify it to Range(A:O).
    What is the coding for this?

    Can somebody help me?

    File attached for reference
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Invoice sheet using some vba codes

    I can't open macros in your book. Can you save the book as Excel 2007 workbook and attach this one again?

  8. #8
    Forum Contributor
    Join Date
    12-15-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Invoice sheet using some vba codes

    Hi,

    IgorSharov I sorted out the problem.
    Its saved in 2007 format only.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Invoice sheet using some vba codes

    I was glad to help you a bit.

+ 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