Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Convert Workbook (to text)

Greetings:
Have workbooks with 6 - 8 worksheets.
Need to convert all "used" cells to text
ie: no formulas, or vba left over
(like RDB does with his SendMail add-in)
After this is done, i will have to do all kinds of hiding, deletions,
etc. but the convert have to be done first, so I don't loose info due
to the deletions.
The end result will be in a format that is e-mailed in .xls format
and will look the same as the actually hard copy.
thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Convert Workbook (to text)

Sub MakeText()
for each sh in ActiveWorkbook.worksheets
sh.UsedRange.copy
sh.UsedRange.PasteSpecial xlValues
Next
End Sub

If you want to remove code see Chip Pearson's site
http://www.cpearson.com/excel/vbe.htm

--
Regards,
Tom Ogilvy



"BEEJAY" wrote:

Greetings:
Have workbooks with 6 - 8 worksheets.
Need to convert all "used" cells to text
ie: no formulas, or vba left over
(like RDB does with his SendMail add-in)
After this is done, i will have to do all kinds of hiding, deletions,
etc. but the convert have to be done first, so I don't loose info due
to the deletions.
The end result will be in a format that is e-mailed in .xls format
and will look the same as the actually hard copy.
thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Convert Workbook (to text)

Thanks, Tom.
Short and sweet, as always.


"Tom Ogilvy" wrote:

Sub MakeText()
for each sh in ActiveWorkbook.worksheets
sh.UsedRange.copy
sh.UsedRange.PasteSpecial xlValues
Next
End Sub

If you want to remove code see Chip Pearson's site
http://www.cpearson.com/excel/vbe.htm

--
Regards,
Tom Ogilvy



"BEEJAY" wrote:

Greetings:
Have workbooks with 6 - 8 worksheets.
Need to convert all "used" cells to text
ie: no formulas, or vba left over
(like RDB does with his SendMail add-in)
After this is done, i will have to do all kinds of hiding, deletions,
etc. but the convert have to be done first, so I don't loose info due
to the deletions.
The end result will be in a format that is e-mailed in .xls format
and will look the same as the actually hard copy.
thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i convert diagonal text into horizontal text Alexander Excel Worksheet Functions 0 July 15th 08 07:02 PM
How do I convert a text array to a concatenated text cell? Excel. Vargasjc Excel Worksheet Functions 5 December 20th 06 06:35 PM
convert a range of lowercase text to upper text or vice versa jackdaw Excel Worksheet Functions 2 May 16th 05 09:31 PM
Macro for Text to Columns - convert to text or general goofy11 Excel Programming 1 May 16th 05 03:51 AM


All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"