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 33183  
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 http://briefcase.yahoo.com/TheGreatRadish

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.

Enjoy,

Phil
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

Announcements

Foolanthropy 2014!
By working with young, first-time moms, Nurse-Family Partnership is able to truly change lives – for generations to come.
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.
Post of the Day:
Macro Economics

Economic Implications of Cuba
What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
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 "#1 Media Company to Work For" (BusinessInsider 2011)! 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.
Advertisement