How can I copy the page setup, including the RightHeaderPicture from worksheet to another using VBA? Can someone help me here? Regards, Antony Terrence
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- What's the easiest way to create an Excel tabl
Based on barryleajo's answer, I came up with this code:
(The commented areas caused runtime errors)
A bit bare-bones but you will get the idea by the time you have finished!
Apparently there is no easy way to copy the PageSetup object in its entirety so, assuming the workbook is open try the following:
The full list of properties to consider is provided here.
Never mind, perhaps write it once as a function and post back for all to use?
You could always copy the whole sheet and rename it if this is doable for you. The properties will be 'taken across' as it were.