Hi All,
I would like to add a code in the vba codes below to hide a selected rows in a worksheet Sheet2. Let say Row 32:41, Row 70:80 and Row 90:99.
Thanks
Please Login or Register to view this content.
Hi All,
I would like to add a code in the vba codes below to hide a selected rows in a worksheet Sheet2. Let say Row 32:41, Row 70:80 and Row 90:99.
Thanks
Please Login or Register to view this content.
will hide rows that have cells selected.Please Login or Register to view this content.
Please help by:
Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know
There are 10 kinds of people in this world... those who understand binary, and those who don't.
Hi
Don't I supposed to indicate what rows I needed to hide. I don't need the entire row to be hidden.
these are the only row that I want to hide so It does no show in the printview.
Row 32:41, Row 70:80 and Row 90:99
Thanks.
You specified "selected rows" so I assumed they were selected... and you can't hide partial row...
Please Login or Register to view this content.
Thank you but so Sorry, I probably did not clarify what I was trying to accomplish here. I apologize.
What I was trying is that when I print the worksheet Sheet2, I don't want to include those row 32:41, and 70:80, and 90:99 to print.
This is what I added in the code which works.
Please see the attachment sample worksheet.Please Login or Register to view this content.
That is the same as my last post I believe, except I didn't know you wanted to hard-code the row numbers, and thought you wanted to be able to select them, however, I'm glad that you have it worked out
I did unhide the rows in my code after print preview, to put it back to normal... which means if you printed manually after the macro finished, those rows would print. You could always add a .Printout command before unhiding, or leave them hidden by removing the .Hidden = False line.
If your issue is resolved then please mark the thread as solved.
Last edited by Arkadi; 07-09-2020 at 01:47 PM.
Hi Arkadi,
I am sorry I don't really understand. My English is not that good and not good with the VBA as well.
What I want to do is not to print those row when I printed the worksheet.
I don't understand this part:
You could always add a .Printout command before unhiding, or leave them hidden by removing the .Hidden = False line.
Thanks.
Ok... is your problem fixed? Or no?
Do you want to choose rows to not print during macro? Or always same?
Hi
Not fixed.
I want rows to choose not to print.
Thanks
addition, Not always the same
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks