Insert a constant value after every row in XL

[Closed]
Report
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
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

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
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