hello, everyone
This code is taking too much time, plz give the solution
thnxPlease Login or Register to view this content.
hello, everyone
This code is taking too much time, plz give the solution
thnxPlease Login or Register to view this content.
Use Code-Tags for showing your code :
Please mark your question Solved if there has been offered a solution that works fine for you
If You like solutions provided by anyone, feel free to add reputation using STAR *
try this at top of code.
This at the end.Please Login or Register to view this content.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Try this
Instead of looping through all the sheets, this selects them all together and applies the printing set-up in one hit.
Please Login or Register to view this content.
thanx for repling
but none method is working for me
Excel holds page setup details separately for each sheet. So if you want to change lots of sheets from the default then it will take time.
Suggestions
1. Amend default settings:
When Excel opens a new worksheet, it opens a default file and takes all its settings from there.
If most of your files require the page set-up per the above macro, then amend and overwrite that file.
(The file on my system is called Book1.xltx and is found in the XLstart folder)
OR
2. Automatically introduce correct settings when new sheet added
Create a macro to add new sheet with your chosen settings and run the macro to create the sheet with correct settings in the first place
eg
Please Login or Register to view this content.
Last edited by kev_; 11-24-2016 at 05:00 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks