PC Review


Reply
Thread Tools Rate Thread

concatenate text with a macro

 
 
sgnat
Guest
Posts: n/a
 
      22nd Jan 2010
Hi,

I would like help with a macro to concatenate text. The account and text
information comes out of a system in the format below and I would like to
have the account number in column A row 1 and the text in column B row 1.
Skip the *** and move on the next account.

The number of text rows between the account and *** varies and the total
number of rows in a worksheet varies each month. The last row of information
always follow with ****.

Before
245_1234555
This account is used to capture material cost
and other ODC.
***
245_45012111
This account is used to capture gov't taxes
and sales taxes and miscellaneous expense
and other, other etc. etc.
***
After

245_1234555 This account is used to capture material costand other ODC.
***

245_45012111 This account is used to capture gov't taxes and sales taxes and
miscellaneous expense and other, other etc. etc.
***

Thanks you.
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      22nd Jan 2010
This sounds like an Excel question and you have posted to an Access newsgroup.

--
Build a little, test a little.


"sgnat" wrote:

> Hi,
>
> I would like help with a macro to concatenate text. The account and text
> information comes out of a system in the format below and I would like to
> have the account number in column A row 1 and the text in column B row 1.
> Skip the *** and move on the next account.
>
> The number of text rows between the account and *** varies and the total
> number of rows in a worksheet varies each month. The last row of information
> always follow with ****.
>
> Before
> 245_1234555
> This account is used to capture material cost
> and other ODC.
> ***
> 245_45012111
> This account is used to capture gov't taxes
> and sales taxes and miscellaneous expense
> and other, other etc. etc.
> ***
> After
>
> 245_1234555 This account is used to capture material costand other ODC.
> ***
>
> 245_45012111 This account is used to capture gov't taxes and sales taxes and
> miscellaneous expense and other, other etc. etc.
> ***
>
> Thanks you.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I would like to concatenate it, or use a macro, to a line of text Lakewoodsale Microsoft Excel Programming 3 19th Oct 2009 11:26 AM
Macro to insert rows and concatenate text macro Microsoft Excel Programming 2 28th Jun 2009 09:46 AM
Concatenate Macro Dan R. Microsoft Excel Programming 1 4th Jan 2007 09:49 PM
Concatenate Macro =?Utf-8?B?bXVsbHk=?= Microsoft Excel Programming 11 4th Jan 2006 05:05 PM
How do I concatenate text to keep the text's original color/font/s =?Utf-8?B?VGVtcF9Vc2Vy?= Microsoft Excel Misc 1 12th Sep 2005 10:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:25 AM.