Sei sulla pagina 1di 18

Show VBA & Macro Tabs on Ribbon

Excel 2003 & 2007


Excel 2010 & 2013

Enable VBA & Macros to Run


Excel 203 & 2007
Excel 2010 & 2013

Find VBA Code


Excel 2003, 2007, 2010 & 2013

Concepts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Click Logo (top left) >> Excel options >> Popular>> Check box next to "Show Developer's Tab in the Ribbon"
FILE >> Excel options >> Customize Ribbon >> Check box next to "Developer" in right panel

Click Logo (top left) >> Excel options >> Trust Center >> Trust Center Settings >> Macro Settings >> Select radio button "Ena
FILE >> Excel options >> Trust Center >> Trust Center Settings >> Macro Settings >> Select radio button "Enable All Macros"

Click Developer tab >> Click Visual Basic tab >> VBAProject; Modules; Double-click Module1

Relative and absolute refrencing - A1, $A1, A$1, $A$1


Boolean 0 or 1
Boolean Logic - AND, OR, XOR
Logic Operators <, >, <=, >=, <>, =
Scope - Application, Workbook, Worksheet, Project, Module, Subroutine/Function
Variable Type and Declaration - String, Integer, Single, Double, Variant, Dates
Constants and Variables
Concatenation of text and variables
Formulas and operators
Functions
Data validation
Object, Properties - Worksheets. Ranges, charts, tables, pictures
Arrays
Nesting
Loops and Conditional Logic - For/Next; IF, IF THEN ELSE, Do While
Clipboard
Step thru lines of code and breakpoints
8
Hello. This is lesson #1.
20 5 5 5
Hello. This is lesson #1., How are you? 5 5 5
160 5 5 5
#1
n
so
Les
of
d

5 5 5
En

5 5 5
5 5 5
5 5 5
5 5 5
5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23 5 5 5
23
23
5 5 25 56 56
5 5 25 56 56
5 5 25 56 56
5 5 25 56 56
5 5 25 56 56

56 56 56
REDIMENSION A SET OF NUMBERS

NEW 1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18

ORIGINAL 1 2 3 4 5 6 7 8
10 11 12 13 14 15 16 17
19 20 21 22 23 24 34 35
37 38 39 40 41 42 43 44
46 47 48 49 50 51 52 53
55 56 57 58 59 60 61 62
64 65 66 67 68 69 70 71
9
18
36
45
54
63
72
Selected Product Product_3
Product ID P3
Product Group Soda
Product Rate 4
Min Lot
Product Production Lot Incremen
Name ID Group Rate Size t SS %
Product_1 P1 Soda 4 200 100 35%
Product_2 P2 Soda 4 300 100 35%
Product_3 P3 Soda 4 300 100 35%
Product_4 P4 Soda 5 400 100 35%
Product_5 P5 Soda 5 500 100 35%
Product_6 P6 Juice 11 300 100 35%
Product_7 P7 Juice 11 400 100 35%
Product_8 P8 Juice 12 300 100 35%
Product_9 P9 Juice 12 300 100 35%
Product_10 P10 Juice 11 200 100 35%

Max Rate 12
Avg Rate 7.9
Min Rate 4
Current Product is: Product_3
Onhand Jan Feb Mar Apr May Jun
Demand 300 305 500 315 320 125
Ending Inventory 233 233 28 228 13 193 168
Safety Stock 105 106.75 175 110.25 112 43.75
Production 200 600 400
Purchases 100 100 100 100 100 100

SELECT PRODUCT Product_3 INVENTORY


Min Lot Size 300 450
Lot Increment 100 400
SS % 35% 350

300

250

200

150

100

50

0
Ja n Feb Mar Apr May Jun Jul A
rent Product is: Product_3
Jul Aug Sep Oct Nov Dec
330 400 340 600 350 355
-62 238 -2 -2 48 93
115.5 140 119 210 122.5 124.25
600 500 300 300
100 100 100 100 100 100

INVENTORY

Jun Jul Aug Sep Oct Nov Dec


Product Name Onhand Inventory
Product_1 200
Product_2 300
Product_3 233
Product_4 577
Product_5 444
Product_6 666
Product_7 233
Product_8 344
Product_9 622
Product_10 145
2016
Product Name Jan Feb Mar Apr May Jun Jul Aug
Product_1 100 105 110 115 120 125 130 135
Product_2 200 205 210 215 220 225 230 235
Product_3 300 305 500 315 320 125 330 400
Product_4 400 405 410 415 420 425 430 435
Product_5 500 505 510 515 520 525 530 535
Product_6 600 605 610 615 620 625 630 635
Product_7 700 705 710 715 720 725 730 735
Product_8 800 805 810 815 820 825 830 835
Product_9 900 905 910 915 920 925 930 935
Product_10 1000 1005 1010 1015 1020 1025 1030 1035
Sep Oct Nov Dec
140 145 150 155
240 245 250 255
340 600 350 355
440 445 450 455
540 545 550 555
640 645 650 655
740 745 750 755
840 845 850 855
940 945 950 955
1040 1045 1050 1055
2016
Product Name Jan Feb Mar Apr May Jun Jul Aug
Product_1 100 100 100 100 100 100 100 100
Product_2 100 100 100 100 100 100 100 100
Product_3 100 100 100 100 100 100 100 100
Product_4 100 100 100 100 100 100 100 100
Product_5 100 100 100 100 100 100 100 100
Product_6 100 100 100 100 100 100 100 100
Product_7 100 100 100 100 100 100 100 100
Product_8 100 100 100 100 100 100 100 100
Product_9 100 100 100 100 100 100 100 100
Product_10 100 100 100 100 100 100 100 100
Sep Oct Nov Dec
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
2016
Product Name Jan Feb Mar Apr May Jun Jul Aug
Product_1 100 100 100 100 100 100 100 100
Product_2 100 100 100 100 100 100 100 100
Product_3 100 100 100 100 100 100 100 100
Product_4 100 100 100 100 100 100 100 100
Product_5 100 100 100 100 100 100 100 100
Product_6 100 100 100 100 100 100 100 100
Product_7 100 100 100 100 100 100 100 100
Product_8 100 100 100 100 100 100 100 100
Product_9 100 100 100 100 100 100 100 100
Product_10 100 100 100 100 100 100 100 100
Sep Oct Nov Dec
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100
100 100 100 100

Potrebbero piacerti anche