How do I link 2 Macros to 1 workbook page? I am getting an error about not being able to run 2 instances in the same workbook I believe it is something close to that.
I attached my worksheet and here is what I would like:
There are 2 buttons I made one for clear range of cells and one for fill blank cells with 0.
Here are the codes I am using:
and![]()
Sub ClearcellContent() 'Updateby Extendoffice Range("D3:D30").ClearContents Range("D32:D40").ClearContents Range("D42:D60").ClearContents Range("J3:J30").ClearContents Range("J32:J40").ClearContents Range("J42:J60").ClearContents End Sub
In addition...I am getting an error when opening the workbook saying links need to be updated.![]()
Sub ReplaceBlankswithZero() On Error Resume Next Range("D3:D30").SpecialCells(xlCellTypeBlanks) = 0 Range("D32:D40").SpecialCells(xlCellTypeBlanks) = 0 Range("D42:D60").SpecialCells(xlCellTypeBlanks) = 0 Range("J3:J30").SpecialCells(xlCellTypeBlanks) = 0 Range("J32:J40").SpecialCells(xlCellTypeBlanks) = 0 Range("J42:J60").SpecialCells(xlCellTypeBlanks) = 0 On Error GoTo 0 End Sub
Thank you for any assistance!
Bookmarks