Тёмный

Delete rows based on Cell Value using arrays in VBA 

EverydayVBA
Подписаться 11 тыс.
Просмотров 6 тыс.
50% 1

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

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@dymitrgafarowski5542
@dymitrgafarowski5542 2 года назад
many thanks, exactly what I need
@dinyarbuhariwalla1120
@dinyarbuhariwalla1120 3 года назад
Hi, I have a task to delete in a range of 600. For eg I have about more than 1000000 row of data. If is start from row 1-600 I would like to keep row 1 and delete all the way from 2 to 600, then keep 601 and delete all the way upto 1200. What should i write in a code to keep every first row of 600
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 3 года назад
For rw = 600 to ubound(oarray)
@MultiDenisas
@MultiDenisas 4 года назад
Hi, thanks for video! But i am strugling with one case: deleting filtered rows in table. How to say to vba "you just filtered rows i need, now delete those, but not all rows and together all table"?.. :D i am stuck. Could you provide some ideas, please?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 4 года назад
For Filtered rows use If Rows(x).visible = false then rows(x).delete
@MultiDenisas
@MultiDenisas 4 года назад
@@EverydayVBAExcelTraining See, i have more tables along workshit, and in that case vba want to delete entire sheet row...but i need to delete table row only. In stright way we can select table row manually, and in options select "delete table row", now i want to do the same in vba, but there is a problem: Listobject(any).listrows(rowindex).delete I can't use entirerow.delete, becouse i have few tables in my worksheet and i don't want to delete entire sheet row. So, after filter, there can be many rows visible, wich has passed criteria. And i don't know these rows indexes and how to refearence those filtered rows indexes in listrow(rowindex). Also, i guess, i should use some loop in adition? I was trying like: ....listrows(xlvisible).delete But it didn't work properly. So shortly: would like to find some code wich would go to my table, finde rows with criteria, and would delete those table rows, but not entire sheet rows. I started by filtering my table, but failed to delete those...
@wasatymamut
@wasatymamut 4 года назад
Thank you for that video :)
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 4 года назад
Your welcome glad it helped
@tamilheadset8d40
@tamilheadset8d40 3 года назад
i have 3 lakhs line , need to delete row based on array value . when i run its takes so much time and never end. I using screen updating , display alerts functions but even though its takes times. anyone pls
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 3 года назад
Are you doing all the calculations or changes within the arrays. If you are writing to a sheet it will take a long time