Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've just converted to Office 2007 and have an error when I try to use
Send Mail, with the message "The following Feature cannot be saved in a macro free workbook" .VB Project. It debugs on the line below .SaveAs TempFilePath & TempFileName & FileExtStr, FileFormat:=FileFormatNum However part of my code prior to this allocates the FileFormat number to it for Excel 2007, see part below, all via Ron de Bruin. Any ideas? With Destwb If Val(Application.Version) < 12 Then 'You use Excel 97-2003 FileExtStr = ".xls": FileFormatNum = -4143 Else 'You use Excel 2007 'We exit the sub when your answer is NO in the security dialog that you only 'see when you copy a sheet from a xlsm file with macro's disabled. If Sourcewb.Name = .Name Then With Application .ScreenUpdating = True .EnableEvents = True End With MsgBox "Your answer is NO in the security dialog" Exit Sub Else Select Case Sourcewb.FileFormat Case 51: FileExtStr = ".xlsx": FileFormatNum = 51 Case 52: If .HasVBProject Then FileExtStr = ".xlsm": FileFormatNum = 52 Else FileExtStr = ".xlsx": FileFormatNum = 51 End If Case 56: FileExtStr = ".xls": FileFormatNum = 56 Case Else: FileExtStr = ".xlsb": FileFormatNum = 50 End Select End If End If End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Send Lous Notes 7 mail from Excel 2007 automatically | New Users to Excel | |||
how do I send selected cells in an e-mail using excel 2007? | Excel Discussion (Misc queries) | |||
How can i password secure a workbook when i send it via e-mail | Excel Discussion (Misc queries) | |||
Send as E-mail Document format (Excel 2007) | Excel Discussion (Misc queries) | |||
how to send a workbook shortcut as attachement in an e-mail from a userform | Excel Programming |