0% found this document useful (0 votes)
55 views11 pages

Pass Break Unhide Sheet Create Useful Toolbar Button Format Tips

The document contains code for a password breaker macro that attempts to unlock a protected Excel sheet by cycling through all possible 6-character password combinations. It also includes sample code to unhide all worksheets in a workbook. The rest is an inventory report comparing stock levels from June to July 2012 across various product lines and regions.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views11 pages

Pass Break Unhide Sheet Create Useful Toolbar Button Format Tips

The document contains code for a password breaker macro that attempts to unlock a protected Excel sheet by cycling through all possible 6-character password combinations. It also includes sample code to unhide all worksheets in a workbook. The rest is an inventory report comparing stock levels from June to July 2012 across various product lines and regions.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 11

Pass Break

Unhide sheet

Create useful toolbar button

Format Tips

Download thng t ny trn


mng s b shadow, nhn rt
kh, kch v y chnh

(1,100)

#,##0_);[Red](#,##0)

Sub PasswordBreaker()
If ActiveSheet.ProtectContents = False Then
MsgBox "Sheet '" & ActiveSheet.Name & "' is unprotected!", vbInformation
Else
If MsgBox("Sheet '" & ActiveSheet.Name & "' is protected, do you want to unprotect it?", _
vbYesNo + vbQuestion, "Unprotect Active Sheet") = vbNo Then Exit Sub
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
If ActiveSheet.ProtectContents = False Then MsgBox "Sheet '" & ActiveSheet.Name & "' is unprotected!"
End If
End Sub

t to unprotect it?", _

eSheet.Name & "' is unprotected!", vbInformation

Choose the region that include before and after columns then use:
Format/ columns/ width

Insert Module
Then:
Sub UnhideWorksheets()
'This routine will unhide all worksheets in a Workbook
Dim I As Integer
For i = 1 To ActiveWorkbook.Sheets.Count
ActiveWorkbook.Sheets(i).Visible = True
Next
End Sub

INVENTORY FOCUS (JULY vs JUNE 2012)


STOCK
06/2012

ITEMS

AA
BB
CC
DD
EE
FF
GG
HH
Total South
II
KK
LL
MM
NN
OO
PP
QQ
RR
SS
TTT
UU
Total North+Center

TOTAL

30,143
25,837
24,564
22,890
23,390
20,528
101
50,972
198,426
82,332
45,132
28,986
23,188
15,783
23,275
22,385
24,232
30,650
29,549
29,899
24,378
379,788

578,214

STOCK
07/2012

Days of Days of
Stock
Stock
06/2012 07/2012

Days of
Sales
Sales Jul
Stock Sales without Sales without Sales without Sales without
Jun
Var
2012 vs
Var
VAT 06/2011 VAT 06/2012 VAT 07/2011 VAT 07/2012 2012 vs
(%Pts)
N-1 (%)
(day)
N-1 (%)

STOCK
MOVE

STOCK
Var (%)

2,108
4,376
3,289
5,433
-688
1,594
0
-8,305
7,808
17,037
6,428
3,993
5,836
1,128
2,038
5,357
3,463
4,744
1,371
1,164
1,529
54,090

7.0%
16.9%
13.4%
23.7%
-2.9%
7.8%
0.0%
-16.3%
3.9%
20.7%
14.2%
13.8%
25.2%
7.2%
8.8%
23.9%
14.3%
15.5%
4.6%
3.9%
6.3%
14.2%

14
16
13
14
14
18
n/a
0
20
20
25
19
22
19
26
22
24
29
33
31
31
24

16
20
15
18
14
21
n/a
21
18
27
31
22
29
22
31
28
30
34
37
36
35
29

2
4
2
4
(0)
3
n/a
n/a
(2)
6
6
3
8
3
5
5
6
5
4
5
5
5

640,111 61,897 10.7%

22

24

32,251
30,213
27,854
28,324
22,702
22,122
101
42,667
206,233
99,369
51,560
32,979
29,024
16,911
25,313
27,742
27,695
35,394
30,920
31,064
25,906
433,878

Detention
Rate
06/2012

Detention
Rate
07/2012

Detention
Rate Var
(%)

66,258
53,857
59,605
52,014
54,373
32,975
0
0
319,082
140,171
60,874
45,932
29,394
24,279
27,199
28,101
30,310
0
0
0
0
386,260

74,239
54,792
63,278
56,491
55,698
38,718
0
0
343,216
139,387
61,779
51,492
36,466
27,568
28,687
34,490
34,177
37,046
30,747
32,480
27,121
414,046

63,043
52,683
61,614
53,041
55,285
35,169
0
0
320,835
138,076
63,327
47,121
32,056
25,127
26,655
28,595
29,119
0
0
0
0
390,075

70,445
52,724
62,089
55,556
55,585
36,769
0
69,947
333,168
127,994
57,169
50,810
34,023
26,207
28,030
34,419
31,731
36,033
28,836
29,716
25,204
390,383

12.0%
1.7%
6.2%
8.6%
2.4%
17.4%
n/a
n/a
7.6%
-0.6%
1.5%
12.1%
24.1%
13.5%
5.5%
22.7%
12.8%
n/a
n/a
n/a
n/a
7.2%

11.7%
-0.3%
0.1%
-1.7%
0.8%
-5.4%
4.7%
-3.9%
0.5%
-1.9%
4.5% -12.9%
n/a
n/a
n/a
n/a
3.8%
-3.7%
-7.3%
-6.7%
-9.7% -11.2%
7.8%
-4.3%
6.1% -17.9%
4.3%
-9.2%
5.2%
-0.3%
20.4%
-2.4%
9.0%
-3.8%
n/a
n/a
n/a
n/a
n/a
n/a
n/a
n/a
0.1%
-7.1%

87%
87%
84%
85%
83%
85%
n/a
66%
85%
91%
92%
89%
86%
90%
90%
85%
86%
88%
85%
86%
86%
88%

85%
85%
84%
82%
80%
82%
n/a
68%
83%
89%
88%
86%
87%
87%
84%
82%
80%
86%
82%
84%
85%
85%

-2.3%
-2.3%
0.0%
-3.5%
-3.6%
-3.5%
n/a
3.0%
-2.4%
-2.2%
-4.3%
-3.4%
1.2%
-3.3%
-6.7%
-3.5%
-7.0%
-2.3%
-3.5%
-2.3%
-1.2%
-3.4%

705,342

757,262

710,910

723,551

7.4%

1.8% -5.6%

87%

84%

-3.4%

24.1%

6.1%

Click here to select STORE


40,000

120.0%

June-2012 July-2012
30,000

29,024
23,188
86%

MVND

20,000

100.0%

MM

80.0%

- Khi c c gi tr m v dng, X khng ct Y ti 0

87%

10,000

60.0%

40.0%

23,188

29,024

86%

87%

L do: Max(pri)/ Min(pri) <> Max(sec)/ Min(sec)


- y ta c 3 series, trong c 2 series l n v %, th hin c nh biu trn ta phi chuyn c 2 series sang secondary axis

-10,000

June-2012
24.1%

July-2012
20.0%
6.1%

-20,000
Sales Growth vs N-1

Detention Rate

Stock value

0.0%

Right Click
Customize
Toolbar tab/ New
Command tab/ Macro/
Drag "Custom Menu Item" to the new toolbar button
Right click on the new button
Change the expected name
Assign macro you want

You might also like