I have an excel file with 85,000 rows and I need to extract just the cell comments, but it’s currently too large, so I am wondering if I can write some VB (never done it before) or a macro or something that goes through each row, looks to see if any columns have a cell comment and if not, then deletes the row.
Any hints on how to achieve this would be appreciated! I have a programming background (and did some VB2-6 many, many years ago but have never programmed for Excel)
Make sure your sheet is active, replace “12” with the number of columns you are concerned with for
numColumns. SomeOn Errortrickery is needed inHasComment()becauseComment.Texterrors if you try to check its value when it doesn’t exist: