• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Copy rows from Outlook to Excel |VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Copy rows from Outlook to Excel |VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosCopy rows from Outlook to Excel
sp_PrintTopic sp_TopicIcon
Copy rows from Outlook to Excel
Avatar
shir zk

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
March 31, 2019
sp_UserOfflineSmall Offline
1
March 31, 2019 - 8:04 pm
sp_Permalink sp_Print

Hello my friends,

I use Microsoft Outlook 2010/2013.
I created a rule that copies each sent/received appointment that contains the words “CCB Meeting” to the folder “CCB Meetings”.

Now, I would like to create a Macro in VBA in Excel, that runs throw “CCB Meetings” folder in the mail, and creates a list for each row of all the following information: From, Subject (Including the prefix ‘Accepted’/’Declined’ etc.), Received, To, CC, Start, End, Duration, Recurrence Range Start, Meeting Status, Conversation, Location.
(Exactly as it is in the print screen).

Later on I could continue writing that code, in order to analyze these report of appointments.

I tried to do so, but I got stuck, because I don't familiar very well with Outlook objects...

Could anyone help me?

 

Image Enlarger

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1510
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
April 3, 2019 - 3:02 pm
sp_Permalink sp_Print

Hi,

Attached is some code to get your most of the way there.  I don't have a folder full of appointments to test this with so try it with yours and see how you get along.

To get this to work you need to set a reference in the VBA Editor to the Microsoft Outlook 15.0 Object Library

Regards

Phil

Avatar
shir zk

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
March 31, 2019
sp_UserOfflineSmall Offline
3
April 3, 2019 - 4:07 pm
sp_Permalink sp_Print sp_EditHistory

Thanks! It works! well, sort of... I get run-time error in lines 'To','CC' & 'Location' that says "Object doesn't support this property or method". The other properties are perfectly printed in Excel.

What can I do to solve that error?

Also, where can I read more about the Objects 'Start'/'End' in order to print them also? 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1510
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
April 3, 2019 - 4:43 pm
sp_Permalink sp_Print sp_EditHistory

Your appointments do not have that particular property.  Edit/Remove/Comment Out those lines.  You can read up on Appointment Items here

https://docs.microsoft.com/en-.....ntmentitem

Regards

Phil

Avatar
shir zk

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
March 31, 2019
sp_UserOfflineSmall Offline
5
April 3, 2019 - 4:58 pm
sp_Permalink sp_Print sp_EditHistory

Of course I can remove/comment these lines, but I am trying to print these properties... Why it doesn't work?

Also, 'Email' is defined as "Variant", how can I turn it into "Appointment Item"? I read in the documentary that there are the some properties I would like to print. However, the commend "Range("D1").Offset(i,0).Value = Email.StartOn" doesn't compile for some reason.

Is there any other way to just "copy" a String for each email of all the required properties?

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Ben Hughes, Dario Serrati, Christopher Anderson, dectator mang, Oluwadamilola Ogun, yashal minahil
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27181

 

Member Stats:
Guest Posters: 49
Members: 31858
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.