Delete Highlighted Rows In An Excel 5x5 Grid Using VBA

  Рет қаралды 8,476

ExcelVbaIsFun

ExcelVbaIsFun

3 жыл бұрын

📊 Free Workbooks: www.excelvbaisfun.com/links?u...
🥷Join Excel Ninja Pro: www.excelvbaisfun.com/ninjapr... Months FREE On Annual Plan Auto Applied)
🥷Excel Ninjas FB Group: www.excelvbaisfun.com/xlninjas (Free downloads, Trainings, Live Q&A and more)
Learn how to loop through rows and columns easily in Excel VBA to detect whether a cell has fill color and in this video we delete any rows that have at least one cell that is filled with Yellow interior color! Check it out!
Fantastic Developer Tools:
🔒 Transform Any Excel File Into A Locked EXE: www.excelvbaisfun.com/secure-... (25% off with code ‘25OFF’)
🟡 Create Custom Installers: www.excelvbaisfun.com/custom-...
👋 Business Inquiries, Consulting, Comments, etc: www.excelvbaisfun.com/contact/

Пікірлер: 18
@csaa2540
@csaa2540 Ай бұрын
Hello. Is there an easy way to adapt the code to do the opposite i.e. delete all rows that don't have at least one colored cell?
@maddinenirajeshbabu3143
@maddinenirajeshbabu3143 3 жыл бұрын
Thanks for your video I am having one doubt how to open password protected pdf file through vba
@sidharthpattanayak1066
@sidharthpattanayak1066 3 жыл бұрын
Please upload Selenium-vba -chrome webautomation examples
@anhnhatnguyet4628
@anhnhatnguyet4628 3 жыл бұрын
I want to change a phrase to another phrase, in many excel files in 1 folder at the same time, how to do with VBA excel?
@k3reviews958
@k3reviews958 2 жыл бұрын
You don't explain how do I identify the number of interior color.. How? Explain me please
@kartickchakraborty9135
@kartickchakraborty9135 3 жыл бұрын
Hello Sir, Recently, I've faced some problems in my office work. In order to solve those problems, I came up with 3 ideas. But due to shallow knowledge in VBA, I couldn't implement those ideas in reality to sort out those issues. I've given my 3 questions below one by one. I believe, you'll definitely help me. 001) Is it possible to create Spilled Array (Dynamic Array) like function in VBA. I mean to say creating User Defined Function like Spilled / Dynamic Array Functions (Filter, RandArray, Sequence, Sort, SortBy and Unique Functions) in Excel (Office 365 Version). 002) How do I split First Names, Middle Names (If Available) and Last Names with one single User Defined Function in VBA? Is it also possible in VBA? 003) How to use VBA Split Function with Multiple Delimiters?
@kartickchakraborty9135
@kartickchakraborty9135 3 жыл бұрын
Sir, I want to say, For last few days, I got stuck creating a VBA Code where I've to compile all the Data from Different Files. For your information, all the files are in the same folder. But, there are some catches, - 001) Each File has some Common Headers and some Uncommon Headers. I've to compile the Data Header wise. 002) Each File has more than 80,000 Data. And there are 28 to 31 files in that Folder depending on the number of days in that specific month. Now, during the compilation, if the row of the Master File exceeds 1 Million, then save it and close it. Create a new Excel Workbook, where compilation begins again. But, this time compilation should start next after where it ended in Last master file.
@mohammadaijaz4901
@mohammadaijaz4901 3 жыл бұрын
is conditional formatting through possible deleted rows.
@ExcelVbaIsFun
@ExcelVbaIsFun 3 жыл бұрын
Hi Mohammad, Can you clarify your question a bit? Thanks Dan
@mohammadaijaz4901
@mohammadaijaz4901 3 жыл бұрын
@@ExcelVbaIsFun I have Criteria on Sheet1 and I have Database on Sheet2۔ How do I delete highlight entire rows?
@kartickchakraborty9135
@kartickchakraborty9135 3 жыл бұрын
Happy New Year in advance to you Sir and your Family. May this new year bring all the happiness in your life. Sir I'm requesting you to please make videos on these topics given below. No one has ever discussed on these topics on internet in great details so that we can understand them properly. Please make videos on these 3 topics. By the way, I'm very much impressed with your teaching style. Your way of teaching is unbelievable. Please keep my request. 001) Split Function in VBA with Multiple Delimiters like ";:*_, ./#@". I mean to say, how to split alphanumeric contents in Excel with split function in VBA those have multiple Delimiters. 002) How to convert Currency to Word through VBA? (Like 1,000,000 = One Million Dollar and Zero Cent Only) 003) How to find out Prime Numbers through VBA? (Like 3, 7, 11, 13, 17, 19, 23, 29 and so on).
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Hi Dan. Thanks for the video. I solved it this way which allows you to select any sized range and the macro will loop through the cells in the selection and you don't have to worry about the size or keep track of the columns/rows. Just another way to solve it. Thanks for all the great learning at your channel. Thumbs up!! Sub DeleteRowsWithYellow() Dim rng As Range Set rng = Selection Dim cl As Range For Each cl In rng If cl.Interior.Color = vbYellow Then cl.EntireRow.Delete Next cl End Sub
@ExcelVbaIsFun
@ExcelVbaIsFun 3 жыл бұрын
Oh NICE! That is a great idea, just iterate through EACH cell. Great job! Thanks Dan
@kristjanminnatharmet8961
@kristjanminnatharmet8961 3 жыл бұрын
Here's one of mine, which deletes all selected rows in range: Dim rw As Long, lastRow As Long, del As Long With ActiveSheet lastRow = .Cells(Rows.Count, 1).End(xlUp).Row 'find last row of Column #1 (A) For rw = lastRow To 1 Step -1 'loop through rows backwards If Not Intersect(Selection, Rows(rw).Cells) Is Nothing Then 'This row is within the selected worksheets range(s) Rows(rw).Delete 'delete row del = del + 1 'count deletion (only for troubleshooting) End If Next rw End With
@ExcelVbaIsFun
@ExcelVbaIsFun 3 жыл бұрын
Very cool, Kris! Thanks for sharing!
@krn14242
@krn14242 3 жыл бұрын
Great job Dan. Thanks (krn14242)
@ExcelVbaIsFun
@ExcelVbaIsFun 3 жыл бұрын
Thanks, Kevin!!
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 55 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
🚀 Let's Try VBA and The ExcelFormulaBot
1:18:13
ExcelVbaIsFun
Рет қаралды 3,9 М.
Delete Rows Based On Criteria Excel VBA Macro
6:39
Excel Macro Mania
Рет қаралды 43 М.
6 FREE Add-Ins for Excel to Start Using Now
15:52
Leila Gharani
Рет қаралды 859 М.
Unbelievable methods to Selecting Rows in VBA
12:53
Programming Is Fun
Рет қаралды 9 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 55 МЛН