D
DMP
I have a macro below that does a refresh to a query and
then reformats the table....what happens is after the
refresh, some of the cells in column B come up empty. The
formula in that column does not copy itself to all of the
cells...there is no identifiable pattern to this behavior.
So what I would like to do is after the refresh have excel
parse column B and if it finds a blank cell within my
defined range, it will copy the formula from the cell
above into the blank cell.....
Or, maybe there is a better way....
Sub Refresh_Format()
'
' Refresh_Format Macro
' Macro recorded 4/30/2004 by David Morrison
'
'
Selection.QueryTable.Refresh BackgroundQuery:=False
Selection.RowHeight = 11.25
Selection.ColumnWidth = 13.86
End Sub
then reformats the table....what happens is after the
refresh, some of the cells in column B come up empty. The
formula in that column does not copy itself to all of the
cells...there is no identifiable pattern to this behavior.
So what I would like to do is after the refresh have excel
parse column B and if it finds a blank cell within my
defined range, it will copy the formula from the cell
above into the blank cell.....
Or, maybe there is a better way....
Sub Refresh_Format()
'
' Refresh_Format Macro
' Macro recorded 4/30/2004 by David Morrison
'
'
Selection.QueryTable.Refresh BackgroundQuery:=False
Selection.RowHeight = 11.25
Selection.ColumnWidth = 13.86
End Sub