Insert a constant value after every row in XL

Closed
PRAKAS - Jul 28, 2010 at 12:44 PM
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
- Jul 30, 2010 at 08:11 AM
Hello,

I would like have a macro which inserts a constant value after every existing rows in xl.

E.g

I have rows in column A,macro should read every row in column A and check for a value ' 05 ', if true then insert a new row with below value

' 05 FILLER PIC X VALUE '/'.'


Example below ..
colUMN A

05 HFKAHHAFHKHF PIC X.
88 HFKAHHAFHKHF PIC X.
05 HFKAHHAFHKHF PIC X.
05 HFKAHHAFHKHF PIC X.
05 HFKAHHAFHKHF PIC X.

this should be converted to something like below --

05 HFKAHHAFHKHF PIC X.
05 FILLER PIC X VALUE '/'.
88 HFKAHHAFHKHF PIC X.
05 HFKAHHAFHKHF PIC X.
05 FILLER PIC X VALUE '/'.
05 HFKAHHAFHKHF PIC X.
05 FILLER PIC X VALUE '/'.
05 HFKAHHAFHKHF PIC X.


Please could someone help me on this request?????

cheers..
Prakash.S

1 reply

rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
769
Jul 30, 2010 at 08:11 AM
Just saving time here

Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc and post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too
0