ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Macro Auto Run Problem (https://www.excelbanter.com/excel-worksheet-functions/90659-macro-auto-run-problem.html)

Gary

Macro Auto Run Problem
 
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..



Michael M

Macro Auto Run Problem
 
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

"Gary" wrote:

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..




excelent

Macro Auto Run Problem
 
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 :-)



All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com