I am trying to update column value of filtered data in excel via VBA
I wrote a small macro, which do filter on below table.
After running macro to filter the sheet, I see below
Now what I want to do is, I want to update Location value of filtered data. I am trying by using below:
Range("E100000").SpecialCells(xlCellTypeVisible).Offset(1,0).value ="Abc"
this set value always at A2 cell which is not part of filtered data. Need help on how to set /update value one by one in column E for filtered data.
Thanks in Advance! Vikas
here is my code:
Sub Macro3()
Dim sh As Worksheet
Set sh = ThisWorkbook.Sheets("TempSheet")
weeklyCommCount = InputBox"Enter Weekly
Communication Count (in number)")
repeateDate = CDate(InputBox"Enter Planning Start
Date ('DD-MMM-YY')", "CHR Planning", "01-Apr-24"))
For i = 1 To 40
For j = 1 To weeklyCommCount
'this is working when sheet is not filtered
Range("E100000").End(xUp). Offset(1, 0). Value = repeate Date
"not working setting alads a Ariying below whic is
Range("E100000").SpecialCells(x|Cel|TypeVisible). Offs
et(1, 0). Value = repeateDate
Next
repeateDate = repeateDate + 7
Next
End Sub


Filter/Replace Data
The Calling Procedure
The Called (Helper) Procedures