View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rocky McKinley Rocky McKinley is offline
external usenet poster
 
Posts: 102
Default xlSheetVeryHidden issue

The sub below works, also copy & paste "Application.EnableCancelKey" into a
module then select it and press F1 to read the help file.
Be careful with Application.EnableCancelKey = xlDisabled, if you have code
that gets in an infinite loop there will be no way to stop it, except by
using task manager! Be sure to enable it again at the end of the sub.

Sub Test()
Sheet1.Visible = xlSheetVeryHidden
Sheet2.Range("A1:A4").Value = Sheet1.Range("A1:A4").Value
End Sub

--
Regards,
Rocky McKinley


"cjorgensen " wrote in message
...
Hello,
I am currently creating an application where I have the following
issue:

My file includes several sheets that should not be accessible for the
user. Some of the sheets though contains data that my code needs to
access - and since it is not possible to copy a range (or is there a
way??) without unhiding the sheet temporarily, the program will be
vournable if the users breaks the processing of the code (by
Ctrl+Break).

Is there
a) some way to access data from the sheets (we are talking thousands of
rows) without using copy function?
b) Is there some way to prevent the user from breaking excecution using
Ctrl+Break?

Hope someone can help me out there!!

Greetings from Norway,
Christian


---
Message posted from http://www.ExcelForum.com/