D
David M
Hello All,
I have a Macro attached to a button called "Refresh and
Format" the will refresh a query and reformat the
worksheet...I would like to be able to do this without
going to the sheet, selecting the data and then running
the macro.
Can you help me modify this code so I can just do a
refresh from where ever I am in the workbook?
Thanx
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
I have a Macro attached to a button called "Refresh and
Format" the will refresh a query and reformat the
worksheet...I would like to be able to do this without
going to the sheet, selecting the data and then running
the macro.
Can you help me modify this code so I can just do a
refresh from where ever I am in the workbook?
Thanx
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