Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default removing word wrap from a text file

I am Importing a text file with my macro, and need to remove the word
wrap before Importing. Can I do this in the macro itself? Right now I
am doing this manually before I run the macro.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default removing word wrap from a text file

Try
Range("A1").WrapText = False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"dtittle" wrote in message
ps.com...
I am Importing a text file with my macro, and need to remove the
word
wrap before Importing. Can I do this in the macro itself?
Right now I
am doing this manually before I run the macro.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default removing word wrap from a text file

I was wrong, I want to add the wordwrap. Before I Import the .txt
file, wordwrap is turned off. When WrapText = Ture (it should wrap the
text, correct?) because wright now, it is not.

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
word wrap & pasted text jan@longcroft Excel Discussion (Misc queries) 4 August 28th 08 03:43 PM
word wrap cutting off text Matt Excel Discussion (Misc queries) 6 December 20th 07 12:00 AM
How to make visible all text in cell with word wrap on Al Excel Discussion (Misc queries) 0 September 18th 07 05:20 PM
Reduce the file size of Word file by removing all images in it RosH Excel Programming 0 February 22nd 06 05:11 AM
Text disappears when word wrap is used Mark_GS1CA Excel Discussion (Misc queries) 12 October 17th 05 12:44 PM


All times are GMT +1. The time now is 07:02 PM.

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"