Hi all,
I'm very new to macros so I feel like this is pretty simple, but I just cant get there yet.
I have a very large file downloaded to Excel from SPSS. SPSS left behind a lot of #NULL ! in my spreadsheet.
Doing a simple CTRL+F and Replace will crash Excel because the file is so large.
I want to do this in a macro. I want it to search the entire spreadsheet and replace #NULL ! with "" (a blank cell).
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Helvetica Neue'; color: #000000 ; color: rgba(0, 0, 0, 0.85)}</style>I tried and got the following error:
Invalid outside procedure
This is the code I tried:
Sub RemoveNull()
'
' RemoveNull Macro
' Remove #NULL ! from SPSS Export
'
'
Cells.Select
Selection.Replace What:="#NULL !", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub
Thanks!
I'm very new to macros so I feel like this is pretty simple, but I just cant get there yet.
I have a very large file downloaded to Excel from SPSS. SPSS left behind a lot of #NULL ! in my spreadsheet.
Doing a simple CTRL+F and Replace will crash Excel because the file is so large.
I want to do this in a macro. I want it to search the entire spreadsheet and replace #NULL ! with "" (a blank cell).
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Helvetica Neue'; color: #000000 ; color: rgba(0, 0, 0, 0.85)}</style>I tried and got the following error:
Invalid outside procedure
This is the code I tried:
Sub RemoveNull()
'
' RemoveNull Macro
' Remove #NULL ! from SPSS Export
'
'
Cells.Select
Selection.Replace What:="#NULL !", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
End Sub
Thanks!