LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 897
Default Modify Excel (2003) code for Network environment

I'm late to the party, but did you try this code? What are you trying
to do with it?
--JP

On Feb 20, 9:31*am, JMay wrote:
I need to deliever an application to a network-type business client who
running MSO 2003 (all apps, including Outlook and Excel). *The below code
works fine on my in-house Single user PC (Everything is on drive C:). *The
below code is working great on my single user system. *What are the issues I
can expect when I try and run this code "AS-IS" installed on his PC - where
his incoming mail is somehow on the mysterious "mail server", etc.. *I'm at a
loss as to what to do if this code doesn't work once I copy the excel file to
his hard drive and run it. *Can someone assist me? *Thanks in advance....

Sub GetFromInbox()

* * Dim olApp As Outlook.Application
* * Dim olNs As Namespace
* * Dim Fldr As MAPIFolder
* * Dim olMail As Variant
* * Dim i As Integer
* * Dim C As Range
* * Dim TempName As String
* * Set olApp = New Outlook.Application
* * Set olNs = olApp.GetNamespace("MAPI")
* * Set Fldr = olNs.Folders("Personal
Folders").Folders("Inbox").Folders("DailyReports")

* * * * Range("C5:E200").ClearContents

* * For Each olMail In Fldr.Items
* * * * TempName = Mid(olMail.Subject, 13, WorksheetFunction.Find("(",
olMail.Subject) - 14)
* * * * With ActiveSheet.Range(Range("B5"), Range("B5").End(xlDown))
* * * * Set C = .Find(What:=TempName, LookAt:=xlWhole, _
* * * * LookIn:=xlValues, SearchOrder:=xlByColumns)
* * * * End With
* * * * With ActiveSheet
* * * * If Not C Is Nothing Then
* * * * * * C.Offset(0, 1).Value = olMail.ReceivedTime
* * * * End If
* * * * End With

* * Next olMail
* * Set Fldr = Nothing
* * Set olNs = Nothing
* * Set olApp = Nothing

End Sub

 
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
modify a line code TUNGANA KURMA RAJU Excel Discussion (Misc queries) 6 June 3rd 08 12:31 PM
Modify Code Richard Excel Worksheet Functions 0 March 13th 08 08:19 PM
Modify Macro Code Depending on Excel Version John Taylor Excel Discussion (Misc queries) 11 February 26th 07 04:19 AM
User not being prompted to enter Password to modify Excel 2003 kmorl Excel Discussion (Misc queries) 2 October 20th 06 05:32 PM
modify xlsx files with excel 2003 mallorypr Excel Discussion (Misc queries) 0 July 10th 06 03:15 PM


All times are GMT +1. The time now is 02:59 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"