Тёмный

Create an Excel Macro that Highlights Rows 

Technology for Teachers and Students
Подписаться 1,5 млн
Просмотров 25 тыс.
50% 1

Learn how to create a VBA Excel Macro that will highlight every other row of whatever area of your spreadsheet that is selected. See below for the VBA code for this macro. This video is one in a series that's meant to help VBA macro beginners become more comfortable with creating macros. My entire playlist of Excel tutorials: bit.ly/tech4excel ***Consider supporting Technology for Teachers and Students on Patreon***: / technologyforteachersa... Here's the practice file that goes with this video: bit.ly/excelhighlightmacro #exceltutorial #excel #excelmacros
Books to help you make Excel VBA Macros:
Excel VBA Programming for Dummies: amzn.to/3piWIZ5
Excel Power Programming with VBA: amzn.to/3ph323p
VBA Automation for Excel: amzn.to/36cGPff
Here's the VBA code for this macro:
Sub HighlightEveryOtherRow()
Dim Myrange As Range
Dim Myrow As Range
Set Myrange = Selection
For Each Myrow In Myrange.Rows
If Myrow.Row Mod 2 = 1 Then
Myrow.Interior.Color = vbCyan
End If
Next Myrow
End Sub

Хобби

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@jmotraining2487
@jmotraining2487 3 года назад
Great video! I love coding and VBA is one of my favorites. I usually use it to automate long manual processes in Excel, so it can be done with just one click
@excellence90
@excellence90 3 года назад
Great sharing. Thanks a lot.
@lillyberta422
@lillyberta422 3 года назад
New subscriber, you deserve it!!! Thank you ; )
@user-nm4ul6gr6o
@user-nm4ul6gr6o 3 года назад
thank you so mutch.
@livvaldez8929
@livvaldez8929 3 года назад
Great video btw. Thank you! Just curious how we would know what code to enter into the macro. : )
@DM-kd3yt
@DM-kd3yt Год назад
Great!
@francisnki
@francisnki 3 года назад
Thanks so much Sir! But I couldn't find the Developer option under more commands, what can I do to sort that out?
@filipehrodrigues
@filipehrodrigues 3 года назад
and explanation for the vba code?
@FaddliSyamsul
@FaddliSyamsul 3 года назад
Hi sir, where can I find the specific code for specific action such as 'highlight highest value in red' etc? Anyway you definitely super duper good in teaching
@peggygunther3209
@peggygunther3209 3 года назад
How do we know what kind of code to make it work?
@Villupuram-PID-IIIDivision
@Villupuram-PID-IIIDivision 2 месяца назад
How to add more Colours in single macro ?
@Villupuram-PID-IIIDivision
@Villupuram-PID-IIIDivision 2 месяца назад
How to add more colours in single macro ???
@priceyt6839
@priceyt6839 Год назад
can I make it automatically highlight the row that is at the top of my table? (i have automatic sorting, so the top row changes)
@Mizkitty03
@Mizkitty03 3 года назад
This is great. I can use this for work. Would this work for orders
@nyabilavadgasenlongchi8938
@nyabilavadgasenlongchi8938 3 года назад
Which code please where is the code from?
@AnaLopez-jz5in
@AnaLopez-jz5in 3 года назад
Please help! I am trying to do a dropdown to do list with checkboxes in it so a specific name, and once all checkboxes are marked for the name to change colors. Is there such a possibility to this?
@livvaldez8929
@livvaldez8929 3 года назад
How did he get the macro code he pasted it in here but how did he get it? Did I miss a step?
Далее
Using the Powerful AND Function in Excel
5:50
Просмотров 25 тыс.
Crazy Girl destroy RC CARS 👩🤪🚘🚨
00:20
Просмотров 2,7 млн
Create an Excel Macro from Scratch: AutoFit Columns
8:39
How to Create & Use Excel Macros (Real world example)
10:09
How to Create Macros in Excel Tutorial
9:17
Просмотров 1,5 млн
Highlight Active Row & Column in Excel (7 Levels)
22:56
Learn Macros in 7 Minutes (Microsoft Excel)
7:40
Просмотров 1,8 млн
How to get the Last Row in VBA(The Right Way!)
15:41
Просмотров 151 тыс.