+ Reply to Thread
Results 1 to 5 of 5

creating a macro for printing

  1. #1
    g48dd
    Guest

    creating a macro for printing

    I don't know if this is even possible. I am working with excel 2003. I get a workbook sent to me via Email that has 12 tabs on it and each tab has to be printed out. The fastest way that I know, to get this done is start with tab 1; hit alt+f, u, alt+f, enter, Ctrl+P, enter, Ctrl+page down ( to move to next tab and do it all over again), each tab is a slightly different width so I am constantly have to use "Fit to Page" but each tab will fit on one page easy.

    I was wondering can I use a key stroke macro to print this workbook. I actually get 5 workbooks like this every night, it does not really take that long, maybe I am just being lazy, I was thinking that I might be able to use a key stroke macro and then name it for what ever workbook it works with (workbook 1 print ) but I don't no if this will work or if there is an easier way to get the printing job done.

    I can't upload the workbook but I could create a simple say 5 tab workbook that has no data in but has same formatting and upload that if you need to see what I am doing.

    Thanks Ken
    Last edited by g48dd; 06-08-2009 at 03:26 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: creating a macro for printing

    Record a macro whislt formatting & printing your books
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    g48dd
    Guest

    Re: creating a macro for printing

    Hi Mudraker, I am not sure I understand what you are saying, I always do a search before I post. I must admit some of my searches are not so hot. I was sure this had to have been answered before; actually I know you can create a key stroke macro to print I have done it, what I don't know is can it be done for a report that gets sent to you not one created in your own Excel. I guess I do not really understand how excel macros work I was thinking for it to work with a certain workbook, that workbook would have to be created by me? I think that is what I was asking .... in which case I am guilty of not naming my question correctly. The problem I was thinking would be that the report that comes in has a different date and sometime a different name so I thought that would be a problem. I did check to see if I had posted this question before because I have wanted to for some time, when I do a search on my posts I can see that I have not. However when I do a search on macros and printing this is what I get:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/eforum/public_html/search.php on line 1155

    I don't know what that means and that is why I posted anyway, I am sorry if I have posted something that has already been answered, I don't think that I have Cross Posted

    Thanks
    Ken

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: creating a macro for printing

    Mudraker suggests recording a macro to do this

    http://www.excel-it.com/record_macro.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    g48dd
    Guest

    Re: creating a macro for printing

    Thanks I understand now create a personal macro workbook, so that the maco is available for all workbooks.

    Thanks
    ken

+ 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