Hello again MrExcel,
You guys helped my with this script I inherited a few years ago. I am no VB expert so bear with me on this explanation. the below code snippet is from a macro that collects nmon data from multiple servers and creates a Summary workbook, to this it makes another sheet in the workbook that it makes a chart with average and max resource usage amounts. It has been a great time saver and we would hate to lose it. All that said let me just show you the sub:
I do not show the whole sub as it is lengthy. I will post it if you think it necessary.
The line that the debugger marks is - "ActiveWorkbook.SaveAs FileName:=SummaryFile"
I tried to change this file and every time I do I get it to fail in a different spot. I think we recently discovered that if I make edits to this (I will do it from one of my team's desktops as they are still on version14).
So I think the vbscript is so old it wants to make an .xls and the version 16 which I am running with O365 does not like that format or is not backward compatible in some way.
Thanks,
Rob
You guys helped my with this script I inherited a few years ago. I am no VB expert so bear with me on this explanation. the below code snippet is from a macro that collects nmon data from multiple servers and creates a Summary workbook, to this it makes another sheet in the workbook that it makes a chart with average and max resource usage amounts. It has been a great time saver and we would hate to lose it. All that said let me just show you the sub:
Code:
Sub SetupPerfSummary()
'
' SetupPerfSummary Macro
'
' Keyboard Shortcut: Ctrl+s
RemoveNmonFiles
Application.ScreenUpdating = False
'Use the Status Bar to inform user of the macro's progress
'change the cursor to hourglass
Application.Cursor = xlWait
' makes sure that the statusbar is visible
Application.DisplayStatusBar = True
'add your message to status bar
Application.StatusBar = "Creating PerfSummary Tab..."
Dim SummaryFile As String
SummaryFile = SaveSummary
Application.DisplayAlerts = False
If Application.Version = "12.0" Then
ActiveWorkbook.SaveAs FileName:=SummaryFile, FileFormat:=xlExcel8
Else
ActiveWorkbook.SaveAs FileName:=SummaryFile
End If
Application.DisplayAlerts = True
Sheets.Add.Name = "Perf_Summary"
Application.StatusBar = "Generating PerfSummary Header..."
I do not show the whole sub as it is lengthy. I will post it if you think it necessary.
The line that the debugger marks is - "ActiveWorkbook.SaveAs FileName:=SummaryFile"
I tried to change this file and every time I do I get it to fail in a different spot. I think we recently discovered that if I make edits to this (I will do it from one of my team's desktops as they are still on version14).
So I think the vbscript is so old it wants to make an .xls and the version 16 which I am running with O365 does not like that format or is not backward compatible in some way.
Thanks,
Rob