@@ -2,39 +2,41 @@ import React from 'react';
2
2
3
3
import DemoImage from '@components/DemoImage' ;
4
4
import Slider from '@components/Slider' ;
5
- import { DocsLinks } from '@consts/const'
5
+ import { DocsLinks , WikiLinks } from '@consts/const'
6
6
7
- const SearchHelperGuideDemo : React . FC = ( ) => (
7
+ const SearchHelperGuideDemo1 : React . FC = ( ) => (
8
8
< div >
9
9
< p >
10
10
There is a helper to search / import other
11
11
helpers right from Excel < span role = "img" aria-label = "icon" > 🤯</ span > How do you like it?
12
12
</ p >
13
- < DemoImage url = "./search-helper/demo.gif" width = "64%" / >
14
- < p > Follow the steps to install it (to do only once) </ p >
13
+ < p > The < b > 1 < small > st </ small > option </ b > is to call dialog popup (user form) from any worksheet: </ p >
14
+ < DemoImage url = "./search-helper/demo-form.gif" width = "80%" / >
15
15
</ div >
16
16
) ;
17
17
18
- const SearchHelperGuideStep1 : React . FC = ( ) => (
19
- < p > < a href = "./search-helper/VbaHelpers.zip" download > Download zip</ a > and exctract the files</ p >
20
- ) ;
21
-
22
- const SearchHelperGuideStep2 : React . FC = ( ) => (
18
+ const SearchHelperGuideDemo2 : React . FC = ( ) => (
23
19
< div >
24
- < p > Import all the exctracted files (< b > .bas</ b > and < b > .frm</ b > ) into VBA project</ p >
25
- < p > < b > Developer</ b > → < b > Visual Basic</ b > → < b > File</ b > → < b > Import File...</ b > </ p >
26
- < DemoImage url = "./search-helper/steps/import-module.png" width = "34%" />
20
+ < p >
21
+ The < b > 2< small > nd</ small > option</ b > is to call import directly
22
+ from < a href = { DocsLinks . IMMEDIATE_WINDOW } target = "_blank" rel = "noreferrer" > Immediate window</ a > (it's
23
+ something like using a < a href = { WikiLinks . CLI } target = "_blank" rel = "noreferrer" > CLI</ a > ):
24
+ </ p >
25
+ < DemoImage url = "./search-helper/demo-immediate.gif" width = "80%" />
27
26
</ div >
28
27
) ;
29
28
30
- const SearchHelperGuideStep3 : React . FC = ( ) => (
29
+ const SearchHelperGuideStep1 : React . FC = ( ) => (
31
30
< div >
32
- < p > Move imported files (2 modules and 1 form) to < b > Personal.xlsb</ b > workbook</ p >
33
- < DemoImage url = "./search-helper/steps/move-module.png" width = "34%" />
34
- < p > You may have to < a href = { DocsLinks . PERSONAL_XLSB } target = "_blank" rel = "noreferrer" > create it</ a > first</ p >
35
- < p > Just record a new macro (< b > Developer</ b > → < b > Record Macro</ b > ) and select < b > Personal Macro Workbook</ b > </ p >
31
+ < p > Follow a few simple steps to install (to do only once)</ p >
32
+ < p >
33
+ To run the macro from any Excel file on your computer you have
34
+ to < a href = { DocsLinks . PERSONAL_XLSB } target = "_blank" rel = "noreferrer" > create Personal Macro Workbook</ a > .
35
+ < br /> After creation it's available in any other Excel file. To create it just record any new macro:
36
+ </ p >
37
+ < p > < b > Developer</ b > → < b > Record Macro</ b > → Store macro in < b > Personal Macro Workbook</ b > </ p >
36
38
< DemoImage url = "./search-helper/steps/create-personal-xlsb.png" width = "64%" />
37
- < p > Then you can find your < b > Personal.xlsb </ b > in one of the following places:</ p >
39
+ < p > Then you can find your < b > PERSONAL.XLSB </ b > in one of the following places:</ p >
38
40
< ul style = { { wordWrap : 'break-word' } } >
39
41
< li > < i > C:\Program Files\Microsoft Office\Office12\XLSTART</ i > </ li >
40
42
< li > < i > C:\Documents and Settings\Computer\Application Data\Microsoft\Excel\XLSTART</ i > </ li >
@@ -49,32 +51,59 @@ const SearchHelperGuideStep3: React.FC = () => (
49
51
</ div >
50
52
) ;
51
53
54
+ const SearchHelperGuideStep2 : React . FC = ( ) => (
55
+ < div >
56
+ < p >
57
+ To allow the macro to interact with VBA project objects you have
58
+ to < a href = { DocsLinks . TRUST_ACCESS_VBOM } target = "_blank" rel = "noreferrer" > enable the appropriate option</ a > in
59
+ Excel's Trust Сenter settings
60
+ </ p >
61
+ < DemoImage url = "./search-helper/steps/trust-access-vbom.png" width = "64%" />
62
+ </ div >
63
+ ) ;
64
+
65
+
66
+ const SearchHelperGuideStep3 : React . FC = ( ) => (
67
+ < div >
68
+ < p >
69
+ < a href = "./search-helper/VbaHelpers.zip" download > Download zip</ a > and exctract the files.
70
+ < br /> Import the exctracted files (< b > .bas</ b > and < b > .frm</ b > ) into the VBAProject of < b > PERSONAL.XLSB</ b > :
71
+ </ p >
72
+ < p > < b > Developer</ b > → < b > Visual Basic</ b > → Select < b > PERSONAL.XLSB</ b > → < b > File</ b > → < b > Import File...</ b > </ p >
73
+ < DemoImage url = "./search-helper/steps/import-module.png" width = "34%" />
74
+ </ div >
75
+ ) ;
76
+
52
77
const SearchHelperGuideStep4 : React . FC = ( ) => (
53
78
< div >
54
- < p > Set shortcut to quickly call the macro right from Excel worksheet</ p >
79
+ < p > To quickly call the macro from any Excel worksheet it's handy to set a shortcut </ p >
55
80
< p >
56
- < b > Developer</ b > → < b > Macros</ b > → select the
57
- macro → < b > Options</ b > → Set shortcut (e.g. < b > Ctrl + q</ b > ) → < b > OK </ b >
81
+ < b > Developer</ b > → < b > Macros</ b > → Select the
82
+ macro < b > HelpersFormOpen </ b > → < b > Options</ b > → Set shortcut (e.g. < b > Ctrl + q</ b > ) → OK
58
83
</ p >
59
84
< DemoImage url = "./search-helper/steps/set-shortcut.png" width = "84%" />
60
85
</ div >
61
86
) ;
62
87
63
88
const SearchHelperGuideStep5 : React . FC = ( ) => (
64
89
< div >
65
- < p > Once you done, just close the file < span role = "img" aria-label = "icon" > ❌</ span > </ p >
66
- < p > You will be prompted to save changes in Personal Macro Workbook → click < b > Save</ b > </ p >
90
+ < p >
91
+ Congrats! < span role = "img" aria-label = "icon" > 🥂</ span > That's all
92
+ you need to do. Just close the file < span role = "img" aria-label = "icon" > ❌</ span > .
93
+ </ p >
94
+ < p > You will be prompted to save changes in < b > Personal Macro Workbook</ b > → click < b > Save</ b > </ p >
67
95
< DemoImage url = "./search-helper/steps/save-personal-xlsb.png" width = "34%" />
68
96
</ div >
69
97
) ;
70
98
71
99
const SearchHelperGuide : React . FC = ( ) => (
72
100
< section className = "search-helper" >
73
101
< Slider items = { [
74
- { title : 'How it works' , node : < SearchHelperGuideDemo /> } ,
75
- { title : 'Step 1 - download' , node : < SearchHelperGuideStep1 /> } ,
76
- { title : 'Step 2 - import' , node : < SearchHelperGuideStep2 /> } ,
77
- { title : 'Step 3 - personal book' , node : < SearchHelperGuideStep3 /> } ,
102
+ { title : 'How it works - form' , node : < SearchHelperGuideDemo1 /> } ,
103
+ { title : 'How it works - immediate' , node : < SearchHelperGuideDemo2 /> } ,
104
+ { title : 'Step 1 - personal book' , node : < SearchHelperGuideStep1 /> } ,
105
+ { title : 'Step 2 - trust access' , node : < SearchHelperGuideStep2 /> } ,
106
+ { title : 'Step 3 - add code' , node : < SearchHelperGuideStep3 /> } ,
78
107
{ title : 'Step 4 - set shortcut' , node : < SearchHelperGuideStep4 /> } ,
79
108
{ title : 'Step 5 - save' , node : < SearchHelperGuideStep5 /> }
80
109
] } />
0 commit comments