+ Reply to Thread
Results 1 to 12 of 12

Filter data for each zone and then print selected zones

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Post Filter data for each zone and then print selected zones

    Hi sir,

    I have an excel file having data on first 10 columns. first column has zones. there are nearly 400 different zones. Could some one pls help me with a Macro so that I can Filter data for each zone and then print the selected zones information.


    thanks in advance

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter data for each zone and then print selected zones

    Do you mean you want to copy the individual zones information to a separate sheet and then print all the sheets (except the main one)?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    yes dear..i want to filter each zones details to other pages and then print all the pages on the same time. For eg: if there are 400 zones then we have to get 400 sheets each sheets will be having each filtered zones details


    Thank you so much

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter data for each zone and then print selected zones

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  5. #5
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    thank you so much sir..its working...Excellent

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter data for each zone and then print selected zones

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

  7. #7
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    sure sir I will do it

  8. #8
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    Dear sir,

    This Macro works well.except the below issue its working well..thank you so much!!.

    all the columns in the printed sheets are same..so major texts in these columns arenot there on the print...Could you please help me...so that I can print all columns like that of the sheet1(all the numbers and texts n each coulmn should be exactly visible in te printed sheets)



    Thanks in advance

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter data for each zone and then print selected zones

    What do you mean by this -
    major texts in these columns arenot there on the print

  10. #10
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    Sir,

    Sorry for confusion...for example, If the header(B1) of the second column is "Description" and if we have a discription like "Cocacola united states 330 ml" in column B2..But in the print we will not get the full text- it will show only "Cocacola united " Inorder to get the full text in each worksheets we have to go to the purticular worksheets and then we have to chaNGE EACH zONES wORKSHEETS Mannually(I mean change the column width of B Column..in each newly created worksheet For getting full Descrptions(BY Full descrption I mean All the charecters in Descrption.("Cocacola united states 330 ml"). What I am doing now is After running the Macro I mannually goes to each Worksheets and Sets the column widthts and then again gives the Prints..But in this case It will take Lot of time Because there will be 100 and More Zones...to go to each sheets
    I have attached one sheet for this example..Please go to the work sheets with name 1 and 2. here in the print it will show only the descrption "Cocacola"..If we want full description then we have to go to each worksheets (1 and two and then we have to set the column widths..)

    Please help so that we can print Exactly the full details of Sheet1..

    Thanks In Advance
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-25-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Filter data for each zone and then print selected zones

    Sir,

    Could you please help with this issue

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Filter data for each zone and then print selected zones

    Try this -
    Please Login or Register  to view this content.

+ 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