Hi!
I want my VBA code to insert two blank rows whenever the cell value in column d changes. And since i have used some autofilters, i only want it to do this function on visible cells.
I have this:
But it only works if you put in a certain text you want to search for. But here i don't have anything specific to search for. The values in the column are just "random" numbers.
I want my VBA code to insert two blank rows whenever the cell value in column d changes. And since i have used some autofilters, i only want it to do this function on visible cells.
I have this:
Code:
[/FONT][/COLOR][COLOR=#242729][FONT=Arial][COLOR=#222222][FONT=Verdana]Dim GCell As Range[/FONT][/COLOR][/FONT][/COLOR]
SearchText = ""
Set GCell = Cells.Find(SearchText).Offset(0)
GCell.EntireRow.Insert
[COLOR=#242729][FONT=Arial][COLOR=#222222][FONT=Verdana]GCell.EntireRow.Insert[/FONT][/COLOR][/FONT][/COLOR]
But it only works if you put in a certain text you want to search for. But here i don't have anything specific to search for. The values in the column are just "random" numbers.
Last edited: