Message Font: Serif | Sans-Serif
UnThreaded | Threaded | Whole Thread (1) | Ignore Thread Prev | Next
Author: Radish Big gold star, 5000 posts Old School Fool Add to my Favorite Fools Ignore this person (you won't see their posts anymore) Number: of 33261  
Subject: Macro for posting spreadsheet Date: 1/18/2002 2:49 PM
Post New | Post Reply | Reply Later | Create Poll Report this Post | Recommend it!
Recommendations: 21
Here's a fun macro that formats text in an Excel spreadsheet for posting on the message boards.

The file is named ExportText.xls and is at

Here's how it works:

1. Bring up the spreadsheet you want to post in Excel.
2. Open the ExportText.xls spreadsheet.
3. Go back to your spreadsheet, by typing ctrl-F6 (or using the Window menu item).
4. Highlight the area on the spreadsheet you want to post.
5. To run the macro type alt-F8 (or Tools | Macro | Macros...), highlight ExportText, and click on Run.
6. The macro asks how many spaces you want between columns, and whether or not you want to left-align everything. If you don't left-align everything, it will use the Left, Center, and Right settings you've applied to each cell or if no alignment has been applied it will right-align numbers and left-align everything else.
7. You'll find somewhere on your hard drive a file named ExportText.txt. Double-click on it to open it with notepad.
8. Select all the text (using Edit | Select All, or ctrl-A on newer versions of Notepad) and type ctrl-C to copy it to the Windows clipboard. Close Notepad.
9. In your post, use ctrl-V to paste the text in. Remember to put <PRE> in front of the text and </PRE> after it.
10. Click on Preview Message to make sure your post is a happy post.
11. Delete the ExportText.txt file from your hard drive.


Post New | Post Reply | Reply Later | Create Poll Report this Post | Recommend it!
Print the post  
UnThreaded | Threaded | Whole Thread (1) | Ignore Thread Prev | Next


Post of the Day:
Fool One Central

Look at the Total Risk
What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
Community Home
Speak Your Mind, Start Your Blog, Rate Your Stocks

Community Team Fools - who are those TMF's?
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and Glassdoor #1 Company to Work For 2015! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.