Resetting column and row widths and heights in the middle of a Document

tomtom412

New Member
Joined
Mar 9, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a 10 page excel document, and pages 1-5 are tables that have information that will be fed in via userforms from the user(this is a process flow document, 1-5 are process instructions).

Near the end of the document I need to have tables to log dimensional data taken by an operator, so essentially blank tables for manual entry.

My problem is that the formatting of the cols and rows in the earlier part of the document is obviously effecting the formatting of the cols and rows in the later stages, as its all one document.

So, is it possible to start a new set of Rows and Columns in the middle of a document, without effecting previous formatting? i.e. fresh clean unformatted cols and rows, independent of previous cols and rows, but all one printable document, in the same book/sheet etc.

Like via a page break or something along those lines? I cant find anything myself, so I thought I'd ask the people who know best!
Thanks in advance :)
Tom
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I would see if using merged cells would help....or different parts on different sheets then define a print range....
 
Last edited:
Upvote 0
It doesnt really, improves it alright, but still is not as neat as I would like it. I'm a little pedantic about this sort of stuff and would rather see if theres a fix via macro or something else!
 
Upvote 0
say your pages are only 6 cells - A1:B3 C4:D6 etc

you can set column widths and row heights independently for each block and define them as printarea1 printarea2 etc
 
Upvote 0
say your pages are only 6 cells - A1:B3 C4:D6 etc

you can set column widths and row heights independently for each block and define them as printarea1 printarea2 etc

How would I go about doing that? Sounds like what i'm after!
 
Upvote 0
play on a new spreadsheet - put data in A1:B3 - highlight it - name it as printarea1

now set a macro to record and select printarea1, and print it, stop the macro

now look at the code - very easy to add pritarea2,3, etc
 
Upvote 0
play on a new spreadsheet - put data in A1:B3 - highlight it - name it as printarea1

now set a macro to record and select printarea1, and print it, stop the macro

now look at the code - very easy to add pritarea2,3, etc

Can a macro be written such that it calls on that printarea1 say, and prints it in tandem with my other sheets?

I've only just picked up VBA recently so forgive my lack of knowledge on the capabilities of the program!
 
Upvote 0
446714
556623
printarea1 is A1:B2
printarea2 is F1:G2
this macro prints out each area
on its own A4 page
Application.Goto Reference:="printarea1"
Selection.PrintOut Copies:=1, Collate:=True
Application.Goto Reference:="printarea2"
Selection.PrintOut Copies:=1, Collate:=True
End Sub
re your question on your other sheets
give them all their own name ie printarea3, printarea4 etc
then easy to add a pair of lines to the macro for each additional sheet
it does not matter which sheet each area is on
as the names are unique to the workbook

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
446714
556623
printarea1 is A1:B2
printarea2 is F1:G2
this macro prints out each area
on its own A4 page
Application.Goto Reference:="printarea1"
Selection.PrintOut Copies:=1, Collate:=True
Application.Goto Reference:="printarea2"
Selection.PrintOut Copies:=1, Collate:=True
End Sub
re your question on your other sheets
give them all their own name ie printarea3, printarea4 etc
then easy to add a pair of lines to the macro for each additional sheet
it does not matter which sheet each area is on
as the names are unique to the workbook

<tbody>
</tbody>

Unreal, thank you very much, you've helped immensel! :) :) :).
Tom
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top