I have this following code that is causing problems:
I wish the range to include just certain columns.Please Login or Register to view this content.
unfortunatilgy the range selections are not working.
need help
I have this following code that is causing problems:
I wish the range to include just certain columns.Please Login or Register to view this content.
unfortunatilgy the range selections are not working.
need help
Hi,
Try
Please Login or Register to view this content.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Tried that it selects all columns from A1 to L1
Hi,
If you're looking to select cells, as your original post suggested then as I said
will do that, or if you want to select whole columns thenPlease Login or Register to view this content.
If you're looking to create a new file then I'd be inclined to usePlease Login or Register to view this content.
to create a new workbook from Sheet1 and then delete the columns you don't want.Please Login or Register to view this content.
Im trying to select the columns to export to a pdf document for printing
When I place the select after the range I get a error
Please Login or Register to view this content.
Last edited by wayneao; 11-10-2014 at 12:40 PM.
I didn't say put the .Select in your sheet export line of code. I don't believe you can do it that way.
That's why I said you should use the Sheet1.Copy line, then delete the stuff you don't want then your
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF,...... code
finishing the code withto close the single sheet workbook you created from your main workbook.Please Login or Register to view this content.
Used
Sheet1.copy ("A1, D1, F1, J1")
Error copy of object failed
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks