Workbook Events - Exercise

Excel VBA for Beginners Events in Excel VBA
1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€89.01
List Price:  €124.62
You save:  €35.60
£74.90
List Price:  £104.86
You save:  £29.96
CA$139.27
List Price:  CA$194.98
You save:  CA$55.71
A$154.36
List Price:  A$216.11
You save:  A$61.75
S$129.67
List Price:  S$181.54
You save:  S$51.87
HK$780.32
List Price:  HK$1,092.48
You save:  HK$312.15
CHF 83.48
List Price:  CHF 116.87
You save:  CHF 33.39
NOK kr1,028.95
List Price:  NOK kr1,440.57
You save:  NOK kr411.62
DKK kr663.96
List Price:  DKK kr929.57
You save:  DKK kr265.61
NZ$167.91
List Price:  NZ$235.08
You save:  NZ$67.17
د.إ367.26
List Price:  د.إ514.19
You save:  د.إ146.92
৳12,125.34
List Price:  ৳16,975.97
You save:  ৳4,850.62
₹8,527.50
List Price:  ₹11,938.85
You save:  ₹3,411.34
RM430.21
List Price:  RM602.32
You save:  RM172.10
₦160,266.97
List Price:  ₦224,380.17
You save:  ₦64,113.20
₨28,094.32
List Price:  ₨39,333.17
You save:  ₨11,238.85
฿3,318.66
List Price:  ฿4,646.26
You save:  ฿1,327.60
₺3,876.71
List Price:  ₺5,427.55
You save:  ₺1,550.84
B$561.96
List Price:  B$786.77
You save:  B$224.80
R1,822.47
List Price:  R2,551.53
You save:  R729.06
Лв174.09
List Price:  Лв243.73
You save:  Лв69.64
₩139,436.08
List Price:  ₩195,216.09
You save:  ₩55,780.01
₪355.90
List Price:  ₪498.27
You save:  ₪142.37
₱5,582.04
List Price:  ₱7,815.08
You save:  ₱2,233.04
¥14,586.44
List Price:  ¥20,421.60
You save:  ¥5,835.16
MX$1,935.47
List Price:  MX$2,709.73
You save:  MX$774.26
QR364.15
List Price:  QR509.83
You save:  QR145.67
P1,362.44
List Price:  P1,907.48
You save:  P545.03
KSh12,926.07
List Price:  KSh18,097.01
You save:  KSh5,170.94
E£5,037.94
List Price:  E£7,053.32
You save:  E£2,015.38
ብር13,354.24
List Price:  ብር18,696.47
You save:  ብር5,342.23
Kz91,640.83
List Price:  Kz128,300.83
You save:  Kz36,660
CLP$94,033.59
List Price:  CLP$131,650.79
You save:  CLP$37,617.20
CN¥720.25
List Price:  CN¥1,008.38
You save:  CN¥288.13
RD$5,876.36
List Price:  RD$8,227.14
You save:  RD$2,350.78
DA13,366.77
List Price:  DA18,714.01
You save:  DA5,347.24
FJ$230.45
List Price:  FJ$322.64
You save:  FJ$92.19
Q767.60
List Price:  Q1,074.68
You save:  Q307.07
GY$20,881.03
List Price:  GY$29,234.28
You save:  GY$8,353.24
ISK kr12,913.70
List Price:  ISK kr18,079.70
You save:  ISK kr5,166
DH933.50
List Price:  DH1,306.94
You save:  DH373.43
L1,723.16
List Price:  L2,412.50
You save:  L689.33
ден5,537.79
List Price:  ден7,753.13
You save:  ден2,215.34
MOP$801.04
List Price:  MOP$1,121.49
You save:  MOP$320.44
N$1,829.41
List Price:  N$2,561.24
You save:  N$731.83
C$3,673.85
List Price:  C$5,143.54
You save:  C$1,469.69
रु13,564.30
List Price:  रु18,990.57
You save:  रु5,426.26
S/364.56
List Price:  S/510.40
You save:  S/145.84
K410.63
List Price:  K574.90
You save:  K164.26
SAR375.03
List Price:  SAR525.06
You save:  SAR150.02
ZK2,627.71
List Price:  ZK3,678.89
You save:  ZK1,051.18
L454.38
List Price:  L636.15
You save:  L181.77
Kč2,217.78
List Price:  Kč3,104.99
You save:  Kč887.20
Ft35,963.58
List Price:  Ft50,350.45
You save:  Ft14,386.87
SEK kr966.36
List Price:  SEK kr1,352.94
You save:  SEK kr386.58
ARS$112,490.25
List Price:  ARS$157,490.86
You save:  ARS$45,000.60
Bs692.12
List Price:  Bs969
You save:  Bs276.87
COP$417,411.55
List Price:  COP$584,392.87
You save:  COP$166,981.32
₡50,685.88
List Price:  ₡70,962.27
You save:  ₡20,276.38
L2,584.74
List Price:  L3,618.74
You save:  L1,034
₲797,405.45
List Price:  ₲1,116,399.53
You save:  ₲318,994.08
$U4,177.30
List Price:  $U5,848.39
You save:  $U1,671.08
zł377.91
List Price:  zł529.09
You save:  zł151.18
Already have an account? Log In

Transcript

Okay guys, so now we're going to have an exercise for the workbook events. So we're going to create a workbook event and this workbook here called workbook events that pops an input box whenever you try to insert a new sheet, and this input box will prompt you for the name that you would like to give to the new sheet and then applies the name to the new sheet. So here, if I try to insert a new sheet, you can see here I get an input box, it says please select the name that you would like to give to the new sheet. And then I can type any name, maybe test, click OK. And the name is applied to the new sheet. So this is the kind of functionality that I need you to create using workbook events. Okay, so please attempt that exercise.

And if you get stuck, you can have a look at the answer here in this exercise answer module. Of course, you need to copy the code to this workbook here to be able to run the event. Okay, so please assume the exercise and if you have any questions, please leave them in the q&a section. Thank you very much for watching this video and I'll see you on the next one.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.