• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Telecom Monthly Billing

ashish mehra

Active Member
Hello everyone,

I have a task in my hand to compute billing for every phone number on a month on month base.

Every month there will be some new activation & decativation, we need to squeeze our data from various list of product.

I am posting sample file for reference, here is 2 months billing & we need to make as shown in master sheet.

Feel free to ask any question.

Regards
AM
 

Attachments

  • attachment_1481697956450_Sample Billing File.xlsb
    12.1 KB · Views: 14
Last edited:
Hi AM

Please try the following (Master File sheet must be active sheet):
Code:
Sub test()

    Application.ScreenUpdating = False
   
    Dim lastmonth, i As Integer
   
    lastmonth = ActiveSheet.Index - 1
   
    Columns("A:G").ClearContents
   
    For i = 1 To lastmonth
        Sheets(lastmonth).Columns("A:G").Copy Cells(1, 1)
        Sheets(i).Columns("H").Copy Cells(1, 7 + i)
        Cells(1, 7 + i).Value = "Charges (" & Sheets(i).Name & ")"
    Next i
   
    Application.ScreenUpdating = True

End Sub

Hope it helps
 
Back
Top