Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default need macro for create new email message and send it

In excel 2000 ,

1. need macro for create new email message and send it.
2. need macro that rename file , delete file.


best regards

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default need macro for create new email message and send it

Hi Yuvalbra,

1. need macro for create new email message and send it.


See Ron de Bruin's extensive range of email code at:

http://www.rondebruin.nl/sendmail.htm


2. need macro that rename file , delete file.


'=============
Public Sub Tester()
Const sFilename As String = "OldName.xls" '<<=== CHANGE
Const sNewName As String = "NewName.xls" '<<=== CHANGE

Workbooks(sFilename).SaveAs sNewName
Kill sFilename

End Sub
'<<=============


---
Regards,
Norman


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default need macro for create new email message and send it

thanks norman it was very very helpful

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default need macro for create new email message and send it

i need function to check if exist file name in folder

thanks



Norman Jones wrote:
Hi Yuvalbra,

1. need macro for create new email message and send it.


See Ron de Bruin's extensive range of email code at:

http://www.rondebruin.nl/sendmail.htm


2. need macro that rename file , delete file.


'=============
Public Sub Tester()
Const sFilename As String = "OldName.xls" '<<=== CHANGE
Const sNewName As String = "NewName.xls" '<<=== CHANGE

Workbooks(sFilename).SaveAs sNewName
Kill sFilename

End Sub
'<<=============


---
Regards,
Norman


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default need macro for create new email message and send it

Hi Yuvalbra,

i need function to check if exist file name in folder


Try:

'=============
Function FileExists(FileName As String, _
Optional FilePath As String) As Boolean
If Len(FilePath) Then
If Right(FilePath, 1) < "\" Then
FilePath = FilePath & "\"
End If
End If
FileExists = Len(Dir(FilePath & FileName)) 0
End Function
'<<=============


'=============
Public Sub TestIt()
MsgBox FileExists("Test1.xls", "C:\B\AA\AA2\")
End Sub
'<<=============

By the way, it is conventional to open a new thread for distinct question.



---
Regards,
Norman




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send spreadsheet as email message dan Excel Discussion (Misc queries) 4 September 8th 06 10:20 PM
send email message Sam Excel Programming 1 August 10th 04 10:54 PM
how do i send email from a macro dok112[_18_] Excel Programming 3 June 25th 04 03:30 AM
Send email with alert message Grey Excel Programming 11 May 23rd 04 12:41 PM
CREATE EMAIL MESSAGE Tobie Hanekom Excel Programming 2 May 19th 04 12:30 PM


All times are GMT +1. The time now is 03:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"