Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Crop Text to Col Width

I have just started to learn about using VB to make macros for excel
and would like a pointer. I need to export a space delimited text file
that has more than 256 chars per line which means I can't use excel to
export as .prn file. So the microsoft site has a macro for this at
http://support.microsoft.com/kb/q131554/. The problem is, that the
macro errors out if any columns have more text chars than the set col
width. So, I was wondering, how would you make a macro that would
simply crop the text in each column to the col width? There are abot
30 columns with all difference widths, and I would just like to cut the
text in them to the col width. For learning purposes, I would like to
see a seperate macro that would just do this, however it would also be
really cool to see this inserted into the microsoft macro.

Thanks for any ideas,
Andrew V. Romero

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Crop Text to Col Width

How about:
http://google.com/groups?threadm=015...0a% 40phx.gbl

wrote:

I have just started to learn about using VB to make macros for excel
and would like a pointer. I need to export a space delimited text file
that has more than 256 chars per line which means I can't use excel to
export as .prn file. So the microsoft site has a macro for this at
http://support.microsoft.com/kb/q131554/. The problem is, that the
macro errors out if any columns have more text chars than the set col
width. So, I was wondering, how would you make a macro that would
simply crop the text in each column to the col width? There are abot
30 columns with all difference widths, and I would just like to cut the
text in them to the col width. For learning purposes, I would like to
see a seperate macro that would just do this, however it would also be
really cool to see this inserted into the microsoft macro.

Thanks for any ideas,
Andrew V. Romero


--

Dave Peterson
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
crop away the letters Fan924 Excel Discussion (Misc queries) 4 June 15th 09 05:51 PM
crop spreadsheet bekwud New Users to Excel 11 September 17th 06 10:35 PM
Is there a way to crop text in an Excel cell? cochranrg Excel Discussion (Misc queries) 6 December 13th 05 03:02 PM
Any function for Crop/Cut Text 0-0 Wai Wai ^-^ Excel Worksheet Functions 1 September 8th 05 01:29 PM
wrap text/row width adjusted - no text Julianne Excel Discussion (Misc queries) 1 May 22nd 05 03:22 AM


All times are GMT +1. The time now is 12:54 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"