Macro Auto Run Problem

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Hi,

I created the macro, also got it run automatically whenever we open a
workbook.

Now, the problem is that this data is linked to charts (Pareto Charts that
need to be sorted) and the sheets that contain this data are hidden.
The macro is working fine if the sheets are not hidden and if i hide them it
gives me an error :(

Help Please..
 
Hi Gary
Can you unhide the sheets during the running of the macro and then rehide
them after the task is completed.
Try putting

Sheets(1).Visible = False
Sheets(1).Visible = True

If you don't want any user possibly seeing the sheets during the operation
Also include
Application.screenupdating=False
at the beginning of the code
and
Application.screenupdating=True
at the end

HTH
Michael M

in your code
 
Hi Gary and Michael
Sorry im interupting ur question, but i got a problem
I simply cant start a new question
I try click on New and select question, but nothin happens
can any of u help me out please

sry my french im from Denmark :-)
 

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