Hi all can anyone help me for doing this.The thing is that i want the date should be display as like month wise January,Feb,March but it is displaying the date for eg 14/1/2009 i dont know how to do this.For eg if mm=1 then january i want if mm=2 then feb
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim uiview As NotesUIView
Dim ws As New NotesUIWorkspace
Dim collection As NotesDocumentCollection
Dim column As NotesViewColumn
Set db=session.currentDatabase
Print "Please Wait as the Excel Spreadsheet is being created..."
Set view=db.GetView("Approved")
Set doc=view.GetFirstDocument
Dim rownum As Integer,currentdocnum As Long
rownum = 4
currentdocnum=1
Dim xlapp,xlWork
Set xlapp = CreateObject( "Excel.Application" )
xlapp.Workbooks.add
Set xlWork = xlapp.ActiveWorkbook
xlapp.visible=True
xlWork.worksheets("Sheet1").cells(2, 5).value="Transfer to Excel"
xlWork.worksheets("Sheet1").cells(2, 5).Font.Size=14
xlWork.worksheets("Sheet1").cells(2, 5).Font.ColorIndex=10
xlWork.worksheets("Sheet1").cells(2, 5).Font.Bold = True
xlWork.worksheets("Sheet1").cells(3,1).font.bold = True
xlWork.worksheets("Sheet1").cells(3,1).columnwidth = 10
xlWork.worksheets("Sheet1").cells(3,1).value = "Name"
xlWork.worksheets("Sheet1").cells(3,2).font.bold = True
xlWork.worksheets("Sheet1").cells(3,2).columnwidth = 10
xlWork.worksheets("Sheet1").cells(3,2).value = "Month"
xlWork.worksheets("Sheet1").cells(3,3).font.bold = True
xlWork.worksheets("Sheet1").cells(3,3).columnwidth = 10
xlWork.worksheets("Sheet1").cells(3,3).value = "leave"
Dim b As Variant
Dim martot As Double
martot = 0
While Not (doc Is Nothing)
xlWork.worksheets("Sheet1").cells(rownum,1).value = doc.fd_NestParticipate(0)
xlWork.worksheets("Sheet1").cells(rownum,2).value =doc.startdate(0)
xlWork.worksheets("Sheet1").cells(rownum,3).value =doc.leave(0)
martot = martot + Cdbl(doc.leave(0))
Set doc=view.GetNextDocument(doc)
rownum=rownum+1
Wend
xlWork.worksheets("Sheet1").cells(rownum,2).font.bold = True
xlWork.worksheets("Sheet1").cells(rownum,2).Font.ColorIndex=3
xlWork.worksheets("Sheet1").cells(rownum,3).font.bold = True
xlWork.worksheets("Sheet1").cells(rownum,3).Font.ColorIndex=3
xlWork.worksheets("Sheet1").cells(rownum,3).value = martot
End Sub