Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Tom, I just got a method 'saveas' of object 'workbook' failed. Any Ideas? Cheer -- Josep ----------------------------------------------------------------------- Joseph's Profile: http://www.excelforum.com/member.php...nfo&userid=563 View this thread: http://www.excelforum.com/showthread.php?threadid=27773 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I changed P to C and created you structure. This revision worked fine for
me. (I changed C back to P). Sub AAAA() sName = "P:\clevedon staff\activities\" & _ Application.UserName & "\" & Application.UserName _ & " " & Format(Now, "DDMMYY") & " ActivityLog.csv" If Dir(sName) < "" Then Kill sName End If Application.DisplayAlerts = False ActiveWorkbook.SaveAs Filename:= _ sName, FileFormat:=xlCSV, _ Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, _ CreateBackup:=False ActiveWorkbook.Saved = True Application.Quit Application.DisplayAlerts = True End Sub -- Regards, Tom Ogilvy "Joseph" wrote in message ... Hi Tom, I just got a method 'saveas' of object 'workbook' failed. Any Ideas? Cheers -- Joseph ------------------------------------------------------------------------ Joseph's Profile: http://www.excelforum.com/member.php...fo&userid=5637 View this thread: http://www.excelforum.com/showthread...hreadid=277733 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to test for existence of external file | Excel Worksheet Functions | |||
Test for file existence | Excel Programming | |||
Existence, Search, Test | Excel Programming | |||
Test for existence of Name | Excel Programming | |||
how do i test for the existence of a range name | Excel Programming |