C
consort911
I've written a macro to pull comma-separated text from emails, which I want
to put into a table
Dim folder As Outlook.MAPIFolder
Dim MailItem As Outlook.MailItem
Dim arr() As String
Dim aaa As String
Set folder = GetNamespace("MAPI").Folders.Item("AAA").Folders.Item("BBB")
For Each MailItem In folder.Items
arr = Split(MailItem.Body, vbCrLf)
For Each aaa in arr
???what do I put here (For Excel, I would shove into cells) ????
Next aaa
Next arr
Set folder = Nothing
Set MailItem = Nothing
Here is a sample of the text
"ABA",0,4616,100.00,13/08/08 12:26
"ABB",0,3669,100.00,13/08/08 12:26
"ABC",470,28417,98.35,13/08/08 12:26
What do I need to do to put the text into a table named KPI53
with fields called
NODE(text),BLOCKS(integer),ATTEMPTS(integer),RATE(decimal),Date(Date/Time)
Do I need to set up a Query (which is alien to me) and other stuff ??
to put into a table
Dim folder As Outlook.MAPIFolder
Dim MailItem As Outlook.MailItem
Dim arr() As String
Dim aaa As String
Set folder = GetNamespace("MAPI").Folders.Item("AAA").Folders.Item("BBB")
For Each MailItem In folder.Items
arr = Split(MailItem.Body, vbCrLf)
For Each aaa in arr
???what do I put here (For Excel, I would shove into cells) ????
Next aaa
Next arr
Set folder = Nothing
Set MailItem = Nothing
Here is a sample of the text
"ABA",0,4616,100.00,13/08/08 12:26
"ABB",0,3669,100.00,13/08/08 12:26
"ABC",470,28417,98.35,13/08/08 12:26
What do I need to do to put the text into a table named KPI53
with fields called
NODE(text),BLOCKS(integer),ATTEMPTS(integer),RATE(decimal),Date(Date/Time)
Do I need to set up a Query (which is alien to me) and other stuff ??