How to fill Filtered Cells with data??

pppaulie_s

New Member
Joined
Oct 6, 2020
Messages
2
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi everyone,

I am trying to use to populate the "AD" column fields (filtered by rows that contain data) with the word "SENT".
I can't seem to manage to fill the correct cells due to filtering.
  • "SENT" needs to be populated in the AD column in the cell where there is filtered data
  • also needs to be able to populate the cell if there is only 1 row of filtered data
Hopefully I have explained myself correctly.

Any assistance would be greatly appreciated.
Thank you in advance

1602032549282.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi & welcome to MrExcel.
How about
VBA Code:
Sub pppaulie()
   Dim UsdRws As Long
   With ActiveSheet
      UsdRws = .Range("A" & Rows.Count).End(xlUp).Row
      .AutoFilter.Range.Offset(1).Resize(UsdRws - 4).Columns("ad").Value = "Sent"
   End With
End Sub
 
Upvote 0
Hi & welcome to MrExcel.
How about
VBA Code:
Sub pppaulie()
   Dim UsdRws As Long
   With ActiveSheet
      UsdRws = .Range("A" & Rows.Count).End(xlUp).Row
      .AutoFilter.Range.Offset(1).Resize(UsdRws - 4).Columns("ad").Value = "Sent"
   End With
End Sub
G'day @Fluff

Thank you for your prompt support - this worked a treat! Plus I've learnt something too!
Thanks again for your support (y)(y)(y)(y)

Cheers
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top