Hi there
I have a sheet with reports getting using an advanced filter.
What i would like is a macro that will print all the data that exist in columns A:E, UNTIL the last used cell of column A.
Thank you in advance for any suggestion.
Hi there
I have a sheet with reports getting using an advanced filter.
What i would like is a macro that will print all the data that exist in columns A:E, UNTIL the last used cell of column A.
Thank you in advance for any suggestion.
Try this:
![]()
Sub PrintRange() Dim lr As Long lr = Range("A" & Rows.Count).End(xlUp).Row Dim rng As Range Set rng = Range("A1:E" & lr) rng.PrintOut End Sub
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Thank you Alan. Works perfectly.
May i ask for something else if it's possible?
Is possible to the last row of eatch printed page to count the number of the page and print it?
Something like --Page 1-- , --Page2-- etc....?
Why not set it up in your layout so that it prints in the footer.
http://office.microsoft.com/en-us/ex...010269060.aspx
Apologize for the delay in my reply. We had Nnternet conection problem.
Alan Thank you. It's easy when you know how to do this!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks