Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
how can i add a counter for printing excel spread sheet?
please guid me to have a macro for printing excel spread sheet.
2 Answers
- Anonymous1 decade agoFavorite Answer
Not sure what you mean by a "counter", but you can use the code below...
Sub printit()
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub
or you can use the macro recorder to record your actions and then play them back...
Read more about macro recorder in the sources:
- 5 years ago
Not sure exactly what calculations you allude to but if a case of having data on a page and then using autosum for example if you had four columns like this: units sold, price per unit, units returned, refund price and you wanted to collate this into a summary you could use a pivot table, should work with 27 calculations go to data or tools should be in there (sorry no excel at home and my heads gone blank). By the way macros can present a security risk.