Hi
I have office2000 installed with vb6 on my computer
The problem is in my prject code when i type
Dim appWord As Word.Application
It will be like that
Dim appWord As WORD.Application
The word automaticlly become capital
Also when itype this
Dim objDoc As Word.Document
It will come
Dim objDoc As WORD.Document
---------------------------------------------------
I'm trying to creat folder on the desktop then create a word document inside the folderCode:Dim appWord As WORD.Application Dim objDoc As WORD.Document Dim FileName As String Dim TempFileName As String Dim i As Integer Dim oFooter As Range Dim oRange As Range Dim oEntry As AutoTextEntry Dim BoolFlag As Boolean BoolFlag = False SHCreateDirectoryEx Me.hWnd, "c:\Documents and Settings\All Users\Desktop\NEW FOLDER\", ByVal 0& Set appWord = CreateObject("Word.Application") appWord.Visible = False appWord.Documents.Add '---------------------------- objDoc.SAVE ' Here also the word Save is Capital '---------------------------- appWord.Documents.Close appWord.Application.Quit Set appWord = Nothing Set objDoc = Nothing
But when i go to the folder there is no word document




Reply With Quote