Consulting

Results 1 to 6 of 6

Thread: insert 3 blank row if find a string data on column A

  1. #1
    VBAX Mentor
    Joined
    Feb 2012
    Posts
    406
    Location

    Question insert 3 blank row if find a string data on column A

    I need a VBA code that can insert 3 blank row before the row have a string in their Column A,


    For example

    A1 : Boy
    A2 : 1234 BOY
    A3 : 1234

    When run the VBA it will be :

    A1:
    A2:
    A3:
    A4:Boy
    A5:1234 BOY
    A6:1234

    and have a loop for others .


    Thank you very much

  2. #2

  3. #3
    VBAX Mentor
    Joined
    Feb 2012
    Posts
    406
    Location
    Ok it is good but how can I do this ?

    Thank you for your help .

  4. #4
    VBAX Tutor
    Joined
    Jan 2008
    Posts
    262
    Location
    Record macro and then insert lines as normal, stop macro. This will place the insert line code into a new module. Paste the results on the forum.

    This is a good way of getting to know what you need to write.

  5. #5
    VBAX Mentor
    Joined
    Feb 2012
    Posts
    406
    Location
    Thank you very much , if is it possible for you please help me on this subject , I need it .

    Thank you .

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •