Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6062921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:06:24+00:00 2026-05-23T09:06:24+00:00

So hopefully that topic isn’t too confusing, but basically using VBA within Outlook I

  • 0

So hopefully that topic isn’t too confusing, but basically using VBA within Outlook I am parsing some emails I receive and then appending the results into a CSV File.

I am appending the results using the:

    Open X As Append As 1
    Print #1 yada yada
    Close

I know what the VBA code within Excel would be to copy and transpose the range as it is pretty straightforward, but can this be done within my Outlook VBA Macro? My goal would be to have this done after the data is appended to the CSV file.

I know to include a reference to Excel Objects in my references, but I’m not sure exactly how to put together the Excel code that will open the CSV file I have just appended to, transpose it, then save it as another CSV file. Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:06:24+00:00Added an answer on May 23, 2026 at 9:06 am

    If you have references to the Excel objects in your references then the code should basically be the same in the Outlook VBA as it is in Excel VBA.

    Major diferences will be that you need to ensure that there is an open instance of an Excel Application and a Workbook/WorkSheet that you want to write to. Here is a basic macro for opening excel to get you started.

    Dim excelApplication As Excel.Application  
    Dim workbook As Excel.Workbook  
    Dim sheet as Excel.WorkSheet
    set excelApplication = new Excel.Application
    set workbook = excelApplication.Open(<YourFilename>)
    set sheet = workbook.WorkSheets(1)
    
    'Do your stuff
    
    workbook.Save
    workbook.Close
    excelApplication.Quit
    set workbook = nothing
    set excelApplicaiton = nothing
    

    Note: this is just off the top of my head. I haven’t tested it to make sure that it complies but should be pretty close.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully that title isn't too cryptic. What's happening is I have a jQuery AJAX
I need some sort of node-graph editor, that hopefully works on both Mac and
Hopefully (but not necessarily) one that is independent of language or framework?
I have a weird date rounding problem that hopefully someone can solve. My client
I'm looking to get my hands on an API (hopefully one that's platform agnostic)
I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that
When you first fire up Visual Studio, or even before that (Hopefully) What do
I'm working on a web project that will (hopefully) be available in several languages
Hopefully someone can shed a little light on an issue that I'm currently having
I'm building an app that authors would (hopefully) use to help them, uh.. author

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.