print a worksheet out from another worksheet

  • Thread starter Thread starter rutima - ExcelForums.com
  • Start date Start date
R

rutima - ExcelForums.com

Hi all,
I have a validation list that shows all the worksheets in the
workbook, I want to beable to select the a worksheet from the list
and print it out without having to go to the sheet. Can this be done
if so how?

Cheers
 
Hi

With the list in A1 on Sheet1 for example you can use this macro

Sub printtest()
Dim str As String
str = Sheets("Sheet1").Range("A1")
Sheets(str).PrintOut
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top