Accessing a Hidden and Protected Workbook from a Macro??

  • Thread starter Thread starter djbasumatari
  • Start date Start date
D

djbasumatari

I have the following issue -

1) Hide the "Data" worksheet
2) Now protect the workbook with a password

Now from a macro, how do I access this "Data" worksheet. Someone pleas
help me.

Basically I don't want other users to view the Data worksheet but wan
to access this work sheet from a macro.

Regards
D.J. Basumatar
 
Even if it's hidden, you can still do stuff with it.

Sub test()
MsgBox Worksheets("Sheet1").Range("A1").Value
End Sub
 
Hi
this is no probelm. Try something like the following:

sub foo()
dim wks as worksheet
set wks = worksheets("Data")
wks.range("A1").value=12
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