Macro works in Excel 2003, not in 2007
问题 I have a macro that exports a workbook, which works perfectly fine (and has for years) under Excel 2003. However, it doesn't work on any machine with 2007 or 2010. It runs and opens the Save As box, however no matter what I type, when I click ok, it just sits there. Clicking Ok to save doesn't do anything. Can someone help please? The code: Sub ExportReports() Dim fdialog As Office.FileDialog Dim varfile As String Static varfile_name As String Dim curr_wb_name As String Dim num_sheets As