Apparent loss of action of this Macro

Lazz0

New Member
Joined
Jul 9, 2015
Messages
12
I have been using this Macro shown below for many years now to unhide previously Very Hidden worksheets.

Sub VisibleTrue()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.Visible = True
Next ws
ActiveWindow.DisplayWorkbookTabs = True
Sheet1.Select
End Sub

This Macro now gives me the following error message when I try to activate the macro.
1683109964104.png


I have this programme operating on two computers and they have mysteriously both failed on the same day????

Has there been any changes to the Microsoft Visual Basic language in the last week or so????
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Not that I know of, what line do you get the error on?
 
Upvote 0
Make sure that the workbook as not been protected.
 
Upvote 0
Thanks guys,
No the workbook is not protected.

This is one of the final macro's used in a log in page to access a limited number of worksheets in my programme.

The workbook has 84 worksheets in it and on opening the programme there is a log on form that is supposed to allow the operator access to limited worksheets depending upon the password supplied.

The Log on process is interrupted and the LOG ON form does not get to be accessed.

I can access the Log On form but the error that I posted with this problem is the result.
 
Upvote 0
A further piece of information:
I don't seem to be able to change the status of the worksheet in the Macro.
The following message ie displayed when i try to manually change the status of the visible properties of the worksheet.


Properties of Sheet2 (Databasemanager).PNG
inability to set visable property of the worksheet class.PNG



In fact, I am not able to change this status on any of the worksheets
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top