+ Reply to Thread
Results 1 to 16 of 16

Formatting my sheet

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Formatting my sheet

    I initially just started out wanting to have paper work we use in a digital format but you know how it goes..you realise what a program can do and you start getting ideas. I have recieved some extremely good help on here and i have only made a few posts.

    Let me give you some background on my needs. I work in a Fruit and veg industry and every day we go into market to buy goods, the way things are currently done is by taking a wad of A4 paper which is printed out with a bog standard office table with blanks fields to fill out, at the end of the day all this information has to be totted up and written in the sheet..i hate it, so this sheet i have had help in making does it as i go along (just waitng to find out how to implement the final colum G). At the office they are still going to want a hardcopy of this so i want it to look exactly the same as the originals paper we work with, which it does..but, if i try to print it out for some reason there is information missing at the end, i can see line breaks on the sheet, what i need it to do is to print out everything and where it needs to run into another A4 page i would want the header printed at the top of the next page also with the days date but more importantly to information i have entered to print out as well..can you see any problems with this ?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formatting my sheet

    Go into Print Preview, select Page Setup, click the Sheet tab, under "Rows to repeat at top" highlight the rows you require in teh heading
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Formatting my sheet

    Quote Originally Posted by FDibbins View Post
    Go into Print Preview, select Page Setup, click the Sheet tab, under "Rows to repeat at top" highlight the rows you require in teh heading
    It wont let do anything in that box..is that because the page is already spilling over into another ?.ie do i need to set this before the sheet starts getting filled out ?

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Formatting my sheet

    You may only change this through the Page Setup icon on the Page Layout tab - click the little icon at the bottom right corner of the Page Setup group to access the dialog.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Formatting my sheet

    Ah yes..that done the trick, thanks.

    I have attached my sheet again, for some reason it is printing half a page of empty sheet, no fields filled in..why is that ?..if you have a look at in print preview what i have there i only want that to print out but it is printing a third page that has no values.
    Attached Files Attached Files

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Formatting my sheet

    Maybe:

    Please Login or Register  to view this content.
    Last edited by xladept; 01-14-2014 at 06:46 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Formatting my sheet

    Hmm. .. Not sure what to do with that. Maybe I will just select to print only 2 pages.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Formatting my sheet

    Hi Loady,

    I changed it a little, what you do is copy the code, hit ALT+F11, doubleclick on "ThisWorkbook",type "Option Explicit" and paste the code under that - then every time you print it will readjust to the data that you have

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formatting my sheet

    Highlight the range you want to print, then under the page layout tab/page setup click Print Area, click Set print area

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Formatting my sheet

    Oops,

    I forgot that you need to save the workbook as macro-enabled.

    @ Ford - the VBA i gave him will do the whole trick. Orrin

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formatting my sheet

    Quote Originally Posted by loady View Post
    Hmm. .. Not sure what to do with that. Maybe I will just select to print only 2 pages.
    OK but based on the above, maybe changing the setup range manually will be easier (unless loady knows how to use VBA)

  12. #12
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Formatting my sheet

    Correct..i have no idea how to use VBA, im not actually sure what job it is going to do, i was going to ask if it is some sort of code telling it what to do directly..for me i think the window and button approach is more user friendly, unless of course that VBA was going to do it automatically everytime

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Formatting my sheet

    Did you see post #9?

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Formatting my sheet

    Hi Loady,

    The VBA would do it automatically everytime!

    Here, I've set it up for you: LoadyBuy.xls

    BTW - It's xls and doesn't need to be saved as macro-enabled

  15. #15
    Registered User
    Join Date
    01-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Formatting my sheet

    Thanks, it doesnt seem to want to print out anything i add to it now, if i put more info on there to make it go over one page it is only showing what is currently there

  16. #16
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Formatting my sheet

    Hi Loady,

    Have you got the compatibility pack? If not then you need to save it as an Excel 2007 Macro-Enabled workbook. try this: Loady.xlsm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 05-13-2013, 05:43 AM
  2. Formatting cells in one sheet based on their values in another sheet
    By bwlodarczyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2012, 11:07 AM
  3. Replies: 2
    Last Post: 10-28-2010, 11:15 AM
  4. Replies: 3
    Last Post: 08-01-2010, 04:52 AM
  5. Copying formatting to cells from sheet to sheet
    By mikey21001 in forum Excel General
    Replies: 4
    Last Post: 07-11-2008, 12:38 PM

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