Excel VBA Macro: Replace Blank Cells with Text, Numbers (Zeros), and Formulas

preview_player
Показать описание
Excel VBA Macro: Replace Blank Cells with Text, Numbers (Zeros), and Formulas. In this video, we go over how to find and replace blank cells with 0s, text and formulas across multiple columns and rows. We start off replacing blank cells in one column, next one row, and then an entire range. We use text, numbers and a formula that references another column after replacing the blank cells.

Data used in this video:

#ExcelVBA #ExcelMacro
Рекомендации по теме
Комментарии
Автор

Does this only work if there are no blank cells in Column A? If there are, wouldn’t the selection then stop at the first blank cell it finds there?

a.c.lamonica
Автор

Hi, I want your help in filtering values from one column and writing names in front of it in next column for VBA macro, i can explain you in detail where can I contact you ?

asthapatel
Автор

Hi...I want to auto fill text down (Not need formula) ..fill down if second row available text...can you tell me the macro

honestsales
Автор

Sub Blank_FalseCell()

Dim count_row As Long
Dim count_col As Long
Dim X As Range
Dim Y As Range

Sheets("Sheet4").Activate
count_col = WorksheetFunction.CountA(Range("A2", Range("A2").End(xlToRight)))
count_row = WorksheetFunction.CountA(Range("A2", Range("A2").End(xlDown)))

Set X = Range(Cells(1, 11), Cells(count_row, 11))

For Each Y In X.Cells

If Y = "False" Then
Y = ""
End If

Next Y

End Sub

Why show error in line number 6? Is there any wrong code? Please help me bro.

freevoicebd