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'm looking to get my hands on an API (hopefully one that's platform agnostic)
Is there any (hopefully free/open source) code available that does native TLS/SSL communication? I
--edited for clarity (hopefully) I have an XML file that looks something like this:
I have an odd error that you guys will hopefully be able to help
I am having an issue that I can't seem to figure out. Hopefully somebody
Now there is a subject that could be taken many ways. Hopefully I will
I'm not sure really how to ask that question.. hopefully my explanation will clarify:
I'm looking for a server provisioning tool, hopefully in Ruby, that fits in the
I'm hopeful that someone could potentially post an example of using FParsec where the

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.