Macro/VBA, Selection.Filldown isn't working.

heycaryn

New Member
Joined
Jul 3, 2016
Messages
6
Hello!

I'm trying to automate a report I'm doing, and while running through it I found this bug. When I go to select cell B2, wanting it to fill down, it copies the text from B1 into B2, then does nothing with the remainder of my cells. Any ideas?

Range("C3").Select
Selection.FormulaArray = "=(IF(IF(RC[1]="""",0,1)=0,"""",1))"
Selection.AutoFill Destination:=Range("C3:C942")
Columns("D:D").Select
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("B2").Select
Selection.FormulaArray = "=MATCH(1,--(R[1]C[1]:R[998]C[1]=""""),0)-1"
ActiveSheet.Range("$A$1:$F$942").AutoFilter Field:=1, Criteria1:= _
"=*Driver Name*", Operator:=xlAnd
Range("B2").Select
Selection.FillDown
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
No. The export sheet that we pull from the program essentialy combines two columns, so I filter out the unneeded info before the fill down, because otherwise it would be full of errors.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,023
Latest member
alabaz

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