Highlighting Cells Based On Value/Text - Excel VBA

  Рет қаралды 19,742

Data Nik

Data Nik

Күн бұрын

Пікірлер: 22
@KleanthisSkoulikaris
@KleanthisSkoulikaris 3 жыл бұрын
Thank you very much for this excellent example. I'm looking forward to applying to a similar scenario at some of my work files. New sub earned!
@sogol8320
@sogol8320 2 жыл бұрын
Excellent! very helpful 👏
@posterdotcom4176
@posterdotcom4176 7 ай бұрын
is it possible to change color on smartart as well thru vba? thanks
@md.yousufali8813
@md.yousufali8813 4 жыл бұрын
Thank you. Can you provide some tutorials on graphs made with VBA?
@FinanceNik
@FinanceNik 4 жыл бұрын
Hey Yousuf, sure! I'll try to make it the next video!
@empresscarrot5417
@empresscarrot5417 2 жыл бұрын
Hi! Do you know what I should put in the vba script if I want to highlight the cells in multiple sheets containing a specific text from a different sheet? It's a date so it changes everyday and I can't incorporate it inside the script. The date is in sheet 1 but I need to highlight the cells containing the date indicated in sheet 1 in the next sheets.
@rickblaine6699
@rickblaine6699 2 жыл бұрын
Hi! I have a workbook which contains 17 sheets. This workbook is a type of work schedule where I can enter a start date which usually begins a new year. In each sheet which is based upon a 24 day work schedule I need the sheet to calculate the days of the 24 day/schedule as well as the day of the week. I need the name of the sheet to change to reflect the range of dates for each sheet. Next I need for one row the cells for Saturday and Sunday to change color. The parts that I have not been able to work are renaming the sheets based upon the start day and the changing of the cell color. What do you think?
@amalayunyong5056
@amalayunyong5056 2 жыл бұрын
how would i highlight an entire row? would I use a select method?
@alvingapay2592
@alvingapay2592 4 жыл бұрын
How about if you will write the value in the cells it will be highlighted also or we need to run the macro? Thanks.
@FinanceNik
@FinanceNik 4 жыл бұрын
Hi Alvin, you an of course also write a value to the cell manually. Hope it helped!
@yosef-yosef9414
@yosef-yosef9414 4 жыл бұрын
Thank you, but how about the Multiple Values/Texts? for example, i want to highlight the cells Range A1:H100 depending on their Values in Range J2:J50 (but i don't want to put color in this range J2:J50) you can Also do this trick in Conditional Formatting but the J2:J50 will also have color
@FinanceNik
@FinanceNik 3 жыл бұрын
Hi Yosef, thank you for your comment and sorry for the delay. Yes you can do that. Just put offset in front of the conditional formatting part so something like ... .offset(-10,0).interior.colorindex = 6
@yosef-yosef9414
@yosef-yosef9414 3 жыл бұрын
@@FinanceNik i'm sorry ... i don't get it ... Could you Please explain it step by step😅 *I really appreciate your reply* Finance Nik.. 😍😆 and i'm curious about this
@erlgaming6911
@erlgaming6911 2 жыл бұрын
What if i want to highlight cell value based on the subject in outlook email?
@peteronderwater4269
@peteronderwater4269 3 жыл бұрын
Thanks for this video. In conditional formatting you can use the code "today+14" or "today>14". can I also use that in this macro? if that is possible can you tell me how to do this? thank you in advance!
@FinanceNik
@FinanceNik 2 жыл бұрын
Dear Peter, this might be slightly more tricky than just changing the value of a number. As today is a date or datetime value, you would have to adjust the days specifically. In VBA you can do that with the "DateAdd" function. Just google that and you will find how to adjust each part of a date.
@mauricelee2219
@mauricelee2219 3 жыл бұрын
Sir, thank you this very nice video. Need your kind favor and assistance what about if I choose cell "A1" any data I put in cell "A1" it will highlight same value in B3 to B13. Looking forward for your kind assistance.
@FinanceNik
@FinanceNik 3 жыл бұрын
Dear Maurice, I am not sure if I understand your question correctly. Are you asking whether the highlighted cell range stays constant when changing the input cell?
@mauricelee2219
@mauricelee2219 3 жыл бұрын
@@FinanceNik Hi, Sir, good day, for my view is it possible instead of using input box, I will use cell A1 for my input value, any value I put in cell A1 will highlight same value in either B3 to B13. Many Thanks.
@FinanceNik
@FinanceNik 3 жыл бұрын
@@mauricelee2219 Yes, that surely is possible! Just exchange the code line with the input function with something like sheets(1).cells(1,1).value
@mauricelee2219
@mauricelee2219 3 жыл бұрын
@@FinanceNik Thank you very much.
@sergiomensitieri
@sergiomensitieri 3 жыл бұрын
Top
Deleting Empty Rows in Excel VBA
4:32
Data Nik
Рет қаралды 19 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 88 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 12 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 34 МЛН
Retrieve Data From API with Python
5:52
Data Nik
Рет қаралды 54 М.
10 awesome Power Query tricks you NEED to know! | Excel Off The Grid
15:44
Excel Off The Grid
Рет қаралды 46 М.
Data Analysis for Beginners // Excel Tutorial
23:07
Data Nik
Рет қаралды 337
Datenbank erstellen mit Eingabemaske in Excel VBA + kostenloser Download
1:05:33
Side Bar Menu in Dash Plotly || Python Tutorial
7:39
Data Nik
Рет қаралды 1,1 М.
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 54 М.
How to get the Last Row in VBA(The Right Way!)
15:41
Excel Macro Mastery
Рет қаралды 162 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 88 МЛН