Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to insert rows and concatenate text


Hi All,

I'm trying to create macro where i can insert rows and concatenate it with
text, but it has to be from cursor position.

I think i need to modify the syntax in the module, but i don't know how the
syntax should be formed (newbie to macro)

Appreciate if you can help me with the syntax, because i have thousands
lines need to be inserted :(:::::


Thanks in advance for your advices.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Macro to insert rows and concatenate text


I'm trying to create macro where i can insert rows and concatenate
it with text, but it has to be from cursor position.


Can you provide more detail on this so we will have an idea of exactly what
you are trying to accomplish? If you can give us a couple of examples of
before and after, that would help a lot.

--
Rick (MVP - Excel)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to insert rows and concatenate text


Hi Rick,

Thanks for replying.

I actually wanna insert couple of rows under certain row and fill in the
cell by adding digits in column A and concatenate text in column B. It has to
be able to insert the new rows starting from wherever rows the cursor is
pointing to.

For example:

original row highlight by cursor is Row 10, which Column A has ID XX100, and
Column B has text "original text1", and addtionional text in cell C1
("addition")

I want the macro to insert 4 rows under Row 10, and then populate ID in
Column A by adding (01) -- result would be XX10010. In Column B, after
concatenation between column B and reference cell, it would be "original
text1 - addition".


Thanks a lot for the advice. Really appreciate it.


"Rick Rothstein" wrote:

I'm trying to create macro where i can insert rows and concatenate
it with text, but it has to be from cursor position.


Can you provide more detail on this so we will have an idea of exactly what
you are trying to accomplish? If you can give us a couple of examples of
before and after, that would help a lot.

--
Rick (MVP - Excel)


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
Text to Rows and then Insert Blank Rows [email protected] Excel Discussion (Misc queries) 1 December 20th 08 04:23 PM
Manipulating Text in Rows with COUNTA and CONCATENATE NigelVII Excel Programming 0 July 24th 08 08:07 PM
how insert the return key in formulas for concatenate of text? ~0-0~ Excel Discussion (Misc queries) 2 March 18th 08 06:13 PM
Macro to concatenate multiple rows in a column, without selecting each group manually MikeM[_6_] Excel Programming 7 June 19th 06 06:15 PM
Macro to Insert Rows After a given Text in Col A Rashid Khan Excel Programming 4 July 26th 04 05:24 PM


All times are GMT +1. The time now is 12:32 PM.

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"