cSciFiChick
New Member
- Joined
- Jul 31, 2014
- Messages
- 42
Can someone please help me with possibly an advanced macro. I process a bunch of different reports with different sizes, sometimes single tabs, sometimes multiple tabs, different rows or columns of data and different formatting etc. But every report I send has a few formatting requirements and I would like a macro if possible to do these things in one step.
First we have to Set the Print Area to only include the area of the data. Again the size veries and I can not find a macros that does what the button under the Page layout - Page Setup - Print Area - Set Print Area. I tried to record a macro to do it but it does not seem to carry over when the size of the columns and rows change :/. If this is not possible let me know.
Second Margins need to be
TOP - .25
BOTTOM - .25
LEFT - .17
RIGHT - .22
HEADER - .3
FOOTER - .3
And last the cursor needs to be in cell A1.
I have found a few macros to do one or two of these but it would be nice to do it all in one which is beyond me to build. Also the first one with the Print area has caused problems.
If I had to run these as three seperate macros it would be fine as long as it does it for all the tabs.
First we have to Set the Print Area to only include the area of the data. Again the size veries and I can not find a macros that does what the button under the Page layout - Page Setup - Print Area - Set Print Area. I tried to record a macro to do it but it does not seem to carry over when the size of the columns and rows change :/. If this is not possible let me know.
Second Margins need to be
TOP - .25
BOTTOM - .25
LEFT - .17
RIGHT - .22
HEADER - .3
FOOTER - .3
And last the cursor needs to be in cell A1.
I have found a few macros to do one or two of these but it would be nice to do it all in one which is beyond me to build. Also the first one with the Print area has caused problems.
If I had to run these as three seperate macros it would be fine as long as it does it for all the tabs.