paste in hidden sheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I paste something via VBA into a hidden worksheet without first unhiding
it?
 
yes. assume Sheet 3 is hidden:
Sheets("Sheet1").Range("A1").Copy Sheets("Sheet3").Range("A1")

Charles
 
Yes. The trick is that you can not use selection as you can only select on
visible active sheets...

Sheets("Sheet1").Range("A1").Copy Destination:=Sheets("Sheet2").Range("B2")

This code does not do any selecting so it should work for you...
 

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