Excel VB Copy & Print Range in Bulk

  • Hi excel guru,
    Need some help, i need to run a project to copy data (sales & outstanding) on daily basis and later print the summary range as jpeg file as output.


    I have figured out how to copy and print them, now i am stuck in the process of how to print them in bulk at one go, ie. let say i have 40 accounts to process daily, i want the VB to match the account# in tab sales & outstanding, and output each of the 40 accounts as individual jpeg file.


    i have attached the file here for better understanding


    where am i now and cracking my head, would appreciate you help.


    Thank you.

  • Re: Excel VB Copy & Print Range in Bulk


    Is this how you wanted..?


  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,
    Thanks for your reply, sorry maybe my previous explanation not clear, i want to print the summary tab (range A4:E5) as jpeg for each individual account#, if i got 40 account#, i want to have 40 jpeg file, example attached


    [ATTACH=CONFIG]68490[/ATTACH][ATTACH=CONFIG]68491[/ATTACH].


    so let say now i can use summary tab data as the main data source, next is create a print format (A4:E5) to print each individual account# as jpeg.


    each of jpeg file name based on account# in cell A5 and save in drive D.


    Any idea how to do it?


    Thank you so much.

  • Re: Excel VB Copy & Print Range in Bulk


    Please try the below code and keep me posted on the working status.

  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,
    Thank you so much, it's working great!! awesome!!


    i am looking thru the vb code and try to understand them, thanks and appreciate your help.

  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,
    Can you share which part of vb code to print the range as jpg?


    if i want to enlarge the area of print area (eg. A4:E8), only show one record/account (eg. account #123, 456, 789,....) , below the record i will add some text on my own.


    so the vb will run a list from top to bottom of all the account #


    i had read thru your code and a kinda confused.


    Thanks again.

  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,


    Need your advice below


    pls have a look on the excel file - tab "pic_format", this is the template i want to print as jpeg from A1:F8.


    i need to copy 2 variables - sales person name and sales data from a summary list, assuming now i already copied all data, next is to export this template to jpeg based on various records data, i could have many records like 50, 100.....


    so i want to sort out the export jpeg vb code here, would appreciate you help.


    thanks.

  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,
    Thanks but I didn't ask to change the font size bro, can you pls check thread#9 above.


    Thanks.

  • Re: Excel VB Copy & Print Range in Bulk


    To print sheet "pic_format" Range("A1:F8") as jpg use the below code. or if you want the jpg in large size then increase the font size.
    and Please try to adopt the code as per your requirement.


  • Re: Excel VB Copy & Print Range in Bulk


    Hi Raha,


    thanks bro.


    one more question if i have a long list (100 records in sheet 'summary' and want to copy each of them in this template and print as jpg, is it something like loop thru each of the record and copy, print as jpeg, so can pls enlighten me how to implement this?


    Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!