FOR EACH Loop - Exercise

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
€88.92
List Price:  €124.49
You save:  €35.57
£75.36
List Price:  £105.51
You save:  £30.15
CA$139.15
List Price:  CA$194.82
You save:  CA$55.66
A$156.26
List Price:  A$218.78
You save:  A$62.51
S$129.78
List Price:  S$181.70
You save:  S$51.91
HK$777.74
List Price:  HK$1,088.86
You save:  HK$311.12
CHF 83.13
List Price:  CHF 116.38
You save:  CHF 33.25
NOK kr1,039.16
List Price:  NOK kr1,454.87
You save:  NOK kr415.70
DKK kr663.42
List Price:  DKK kr928.81
You save:  DKK kr265.39
NZ$169.82
List Price:  NZ$237.76
You save:  NZ$67.93
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.91
৳12,188.92
List Price:  ৳17,064.98
You save:  ৳4,876.05
₹8,536.37
List Price:  ₹11,951.26
You save:  ₹3,414.89
RM430.10
List Price:  RM602.16
You save:  RM172.06
₦160,989.89
List Price:  ₦225,392.29
You save:  ₦64,402.40
₨28,187.10
List Price:  ₨39,463.07
You save:  ₨11,275.97
฿3,299.67
List Price:  ฿4,619.67
You save:  ฿1,320
₺3,874.29
List Price:  ₺5,424.16
You save:  ₺1,549.87
B$567.34
List Price:  B$794.30
You save:  B$226.96
R1,817.66
List Price:  R2,544.80
You save:  R727.13
Лв173.76
List Price:  Лв243.27
You save:  Лв69.51
₩139,994.98
List Price:  ₩195,998.57
You save:  ₩56,003.59
₪355.54
List Price:  ₪497.78
You save:  ₪142.23
₱5,544.49
List Price:  ₱7,762.51
You save:  ₱2,218.01
¥14,528.54
List Price:  ¥20,340.54
You save:  ¥5,812
MX$1,952.06
List Price:  MX$2,732.96
You save:  MX$780.90
QR364.06
List Price:  QR509.70
You save:  QR145.64
P1,361.73
List Price:  P1,906.48
You save:  P544.74
KSh12,933.70
List Price:  KSh18,107.70
You save:  KSh5,174
E£5,061.29
List Price:  E£7,086.01
You save:  E£2,024.71
ብር13,459.34
List Price:  ብር18,843.61
You save:  ብር5,384.27
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$94,128.58
List Price:  CLP$131,783.78
You save:  CLP$37,655.20
CN¥722.46
List Price:  CN¥1,011.47
You save:  CN¥289.01
RD$5,902.61
List Price:  RD$8,263.89
You save:  RD$2,361.28
DA13,305.77
List Price:  DA18,628.62
You save:  DA5,322.84
FJ$227.15
List Price:  FJ$318.02
You save:  FJ$90.87
Q770.30
List Price:  Q1,078.46
You save:  Q308.15
GY$20,924.33
List Price:  GY$29,294.90
You save:  GY$8,370.57
ISK kr13,060.69
List Price:  ISK kr18,285.49
You save:  ISK kr5,224.80
DH926.13
List Price:  DH1,296.62
You save:  DH370.49
L1,709.38
List Price:  L2,393.20
You save:  L683.82
ден5,476.65
List Price:  ден7,667.53
You save:  ден2,190.88
MOP$801.19
List Price:  MOP$1,121.71
You save:  MOP$320.51
N$1,867.19
List Price:  N$2,614.14
You save:  N$746.95
C$3,690.56
List Price:  C$5,166.94
You save:  C$1,476.37
रु13,561.38
List Price:  रु18,986.48
You save:  रु5,425.09
S/367.72
List Price:  S/514.83
You save:  S/147.10
K405.78
List Price:  K568.11
You save:  K162.33
SAR375.04
List Price:  SAR525.08
You save:  SAR150.03
ZK2,781.79
List Price:  ZK3,894.63
You save:  ZK1,112.83
L455.04
List Price:  L637.08
You save:  L182.03
Kč2,218.17
List Price:  Kč3,105.53
You save:  Kč887.36
Ft35,964.16
List Price:  Ft50,351.27
You save:  Ft14,387.10
SEK kr971.11
List Price:  SEK kr1,359.59
You save:  SEK kr388.48
ARS$111,237.40
List Price:  ARS$155,736.81
You save:  ARS$44,499.41
Bs693.19
List Price:  Bs970.49
You save:  Bs277.30
COP$430,239.90
List Price:  COP$602,353.08
You save:  COP$172,113.17
₡50,658.12
List Price:  ₡70,923.39
You save:  ₡20,265.27
L2,602.65
List Price:  L3,643.81
You save:  L1,041.16
₲803,267.16
List Price:  ₲1,124,606.16
You save:  ₲321,338.99
$U4,177.30
List Price:  $U5,848.39
You save:  $U1,671.08
zł376.79
List Price:  zł527.53
You save:  zł150.73
Already have an account? Log In

Transcript

Okay guys, so now we're going to have an exercise for the for each loop. So we're going to write a macro using a for each loop to hide all the sheets in this workbook, except for the sheet that is called exercise. So we're going to hide all the sheets in this workbook here called for each loop except for the sheet that is called exercise. And as a hint, you will actually need to use a property for sheets that is called the dot visible property. So if you set the dot visible property to be equal to false, then the sheet is going to be hidden. You can also set it to excel sheets hidden and if you set the property equals to true, then the sheet is not hidden, it's going to be visible and you can also set it to excel sheet visible.

And I've included here the link for the dot visible property for its page on MSDN. So please have a look at it. Read about this property. I need you to get used to reading about properties and methods that you don't know about on MSDN. You know, this is part of learning actually on the course that you can get information yourself. Okay?

So you need to get used to going to MSDN and reading about methods and properties that you don't know about. Okay, this is part of the learning process. I have included the answer for this exercise here on this module called exercise answer. So please attempt the exercise and if you get stuck, have a look at the answer, but please try to solve 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.