Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Convert data and export to a text file

Hi all,
I need your help to solve this problem.
I receive the table with some product value. I need to
concatenate the value in column B with "ABC" text string
and once the whole range is completed to export/save it as
a text file in a specific location with no column heading,
just the plain value. I have tried to apply macros and
various functions but it get vey time-consuming. Need to
apply only to the cell that have value.
I will really appreciate your help!!!!

********
column *
********
424
23424

need to get this and save it in the text file, .txt:

abc424
abc23425

Will
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Convert data and export to a text file

Will,

Can you supply a copy of your code (do not attach a file).

You might want to integrate some of the following (untested code):
(modify to fit your situation).

The 'Application.ScreenUpdating' part helps speed up the code.

Also there are ways to automate the range selection to work with tables
that have a different number of rows.

hth
steve b

'''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''
Sub ChangeMyCell()
Dim cel As Range
Application.ScreenUpdating = False
For Each cel In Range("B1:B500")
If IsNumeric(cel.Value) Then
cel.Formula = "ABC" & cel.Value
End If
Next
Application.ScreenUpdating = True
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''


"Will" wrote in message
...
Hi all,
I need your help to solve this problem.
I receive the table with some product value. I need to
concatenate the value in column B with "ABC" text string
and once the whole range is completed to export/save it as
a text file in a specific location with no column heading,
just the plain value. I have tried to apply macros and
various functions but it get vey time-consuming. Need to
apply only to the cell that have value.
I will really appreciate your help!!!!

********
column *
********
424
23424

need to get this and save it in the text file, .txt:

abc424
abc23425

Will



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
Convert Date to Text for Export Seamless Excel Worksheet Functions 2 December 19th 07 04:15 AM
How can I export text from excel autoshapes to a text file? Donncha Excel Discussion (Misc queries) 0 July 20th 06 04:58 PM
Cell export to Text File? Steve Excel Discussion (Misc queries) 3 December 7th 05 03:13 PM
Export excel file to semicolon delimited text file capitan Excel Discussion (Misc queries) 5 April 7th 05 03:06 AM
Export values in a text file Matrix[_2_] Excel Programming 7 November 2nd 03 04:29 PM


All times are GMT +1. The time now is 02:03 AM.

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

About Us

"It's about Microsoft Excel"