Hyperion: Smart View inserting hidden worksheets with long, random string names

EverClear

New Member
Joined
Oct 23, 2012
Messages
32
Hi there,
I am creating several Smart View template retrieves in Excel, using some mild VBA to retrieve data and metadata, and to spit out copies of certain tabs to new worksheets in the same workbook. The VBA includes a loop to go through each spreadsheet to retrieve the data.

Over time, the workbook accumulates some random worksheets sheets that are hidden. I was right-clicking to perform another action, and happened to notice the 'unhide' menu option was activated. I knew that I didn't create/store any hidden worksheets, so I selected unhide and found these random, junk sheets in my file. These sheets have really long, 31-character names (yup 31, not 32) that look like random alphanumeric characters. The spreadsheets are completely empty.

Has anyone else seen this? If so, does anyone have any ideas on how to keep this from happening? These hidden worksheets screw up the loop in my Smart View retrieve macro.

Thank you!!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi,

I can't help directly. I don't even know if Hyperion will object if you remove them. However, macros like these could be useful. Please test before use on productive data!

Code:
Sub ListVisible()
    Dim ws As Worksheet
    
    For Each ws In Worksheets
        If ws.Visible Then
            Debug.Print ws.Name
        End If
    Next
    
End Sub
Sub DeleteHidden()
    Dim ws As Worksheet
    
    Application.DisplayAlerts = False
    For Each ws In Worksheets
        If Not ws.Visible Then ws.Delete
    Next
    Application.DisplayAlerts = True
    
End Sub
The first one can be adapted to process visible sheets only and skip the hidden ones.
The second macro will delete, without a prompt, all the hidden sheets.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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