Click here to Skip to main content
15,908,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: try this Pin
Colin Angus Mackay31-May-05 0:45
Colin Angus Mackay31-May-05 0:45 
Generalopps sorry Pin
hakanaktan31-May-05 1:01
hakanaktan31-May-05 1:01 
GeneralRe: opps sorry Pin
Colin Angus Mackay31-May-05 1:35
Colin Angus Mackay31-May-05 1:35 
Generalyes you are right Pin
hakanaktan31-May-05 3:38
hakanaktan31-May-05 3:38 
GeneralThe way to count the No. of pages in ms word's Pin
IvanChang30-May-05 20:58
IvanChang30-May-05 20:58 
GeneralRe: The way to count the No. of pages in ms word's Pin
Duncan Edwards Jones31-May-05 0:31
professionalDuncan Edwards Jones31-May-05 0:31 
GeneralIE plug-in Pin
mandrake_230-May-05 20:58
mandrake_230-May-05 20:58 
GeneralOutlook problem Pin
dw192830-May-05 20:45
dw192830-May-05 20:45 
Hi I am trying to save email message to personal folder and also attachment. But when I tried to run the code, until it tried to access c:\ folder it gives an error: Object reference not set to an instance of an object. do you know what happen. Thanks



Dim objApp As Outlook.Application
Dim objNameSpace As Outlook.NameSpace
Dim objMAPIFolder As Outlook.MAPIFolder
Dim objMailItem As Outlook.MailItem
Dim iRow As Integer, i As Integer, j As Integer

objApp = New Outlook.Application
objNameSpace = objApp.GetNamespace(Type:="MAPI")
objMAPIFolder = objNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
For i = 1 To objMAPIFolder.Items.Count
objMailItem.SaveAs("c:\Outlook\" & objMailItem.Subject & ".msg") 'error says Object reference not set to an instance of an object.
If objMailItem.Attachments.Count <> 0 Then
For j = 1 To objMailItem.Attachments.Count
objMailItem.Attachments.Item(j).SaveAsFile("c:\Outlook\" & objMailItem.Attachments.Item(j).FileName)
Next j
End If
Next i
GeneralRe: Outlook problem Pin
S. Senthil Kumar30-May-05 21:23
S. Senthil Kumar30-May-05 21:23 
GeneralRe: Outlook problem Pin
dw192831-May-05 17:21
dw192831-May-05 17:21 
GeneralRe: Outlook problem Pin
S. Senthil Kumar1-Jun-05 3:12
S. Senthil Kumar1-Jun-05 3:12 
GeneralCrystal Reports Progress Dialog box. Pin
Nic Rowan30-May-05 20:25
Nic Rowan30-May-05 20:25 
GeneralVisual Basic Pin
Member 158672030-May-05 17:41
Member 158672030-May-05 17:41 
GeneralRe: Visual Basic Pin
Christian Graus30-May-05 17:48
protectorChristian Graus30-May-05 17:48 
GeneralRe: Visual Basic Pin
Member 158672030-May-05 18:07
Member 158672030-May-05 18:07 
GeneralRe: Visual Basic Pin
Christian Graus31-May-05 10:56
protectorChristian Graus31-May-05 10:56 
GeneralDeployment Question Pin
Binary011030-May-05 15:50
Binary011030-May-05 15:50 
GeneralWeird Problem Pin
Anonymous30-May-05 9:59
Anonymous30-May-05 9:59 
GeneralRe: Weird Problem Pin
Christian Graus30-May-05 14:35
protectorChristian Graus30-May-05 14:35 
GeneralRe: Weird Problem Pin
Anonymous30-May-05 15:08
Anonymous30-May-05 15:08 
GeneralRe: Weird Problem Pin
Christian Graus30-May-05 15:37
protectorChristian Graus30-May-05 15:37 
GeneralSending Mail in VB 6.0 Pin
e_screw30-May-05 6:19
e_screw30-May-05 6:19 
GeneralRe: Sending Mail in VB 6.0 Pin
macca2430-May-05 22:36
macca2430-May-05 22:36 
GeneralDynamically Populating Dropdown Pin
macca2430-May-05 5:14
macca2430-May-05 5:14 
GeneralRe: Dynamically Populating Dropdown Pin
e_screw30-May-05 6:25
e_screw30-May-05 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.