I have been using a macro to pull together worksheets from all open workbooks into a single sheet discussed here:
Combining All Open Workbooks into Single Worksheet
I then have another macro I have been using that removes a row if there is no value within a specified column shown here:
The problem is when I run the Sub DeleteZeroValueRows() macro on the workbook Combining All Open Workbooks into Single Worksheet it results in a "Not Enough Memory" fault.
My initial thought is to try adapt the Sub DeleteZeroValueRows() macro to "Remove Rows Containing Blank Values in Specified Column From All Open Workbooks" but cannot figure out how to do this. I have looked at trying to use some of the code within the Combining All Open Workbooks into Single Worksheet but cannot figure it out. Can anyone help?
Combining All Open Workbooks into Single Worksheet
I then have another macro I have been using that removes a row if there is no value within a specified column shown here:
Code:
Sub DeleteZeroValueRows()
Code:
[COLOR=#232323][FONT=Verdana]Dim nMaxRow As Long, nrow As Long[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]'Application.ScreenUpdating = False Stops Screen Flicker When Running VBA Code[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]Application.ScreenUpdating = False[/FONT][/COLOR][COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]nMaxRow = ActiveSheet.UsedRange.Rows.Count[/FONT][/COLOR][COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] 'Remove Rows Containing Blank Values in Specified Column [/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]For nrow = nMaxRow To 1 Step -1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] If Range("N" & nrow).Value = 0 Then[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] Range("N" & nrow).EntireRow.Delete[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] End If[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]Next nrow[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]End Sub[/FONT][/COLOR]
The problem is when I run the Sub DeleteZeroValueRows() macro on the workbook Combining All Open Workbooks into Single Worksheet it results in a "Not Enough Memory" fault.
My initial thought is to try adapt the Sub DeleteZeroValueRows() macro to "Remove Rows Containing Blank Values in Specified Column From All Open Workbooks" but cannot figure out how to do this. I have looked at trying to use some of the code within the Combining All Open Workbooks into Single Worksheet but cannot figure it out. Can anyone help?