+ Reply to Thread
Results 1 to 3 of 3

VBA Insert Row After Text Looping

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Wilkes-Barre, PA
    MS-Off Ver
    Excel 2010
    Posts
    16

    VBA Insert Row After Text Looping

    I'm looking to insert a row, a separator if you will, after "TotSupply" is found in column B. The text appears many times but only in column B. I have attached the spreadsheet. Thank you in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: VBA Insert Row After Text Looping

    Try this:

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA Insert Row After Text Looping

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA codes to insert the rows and copy the first entire row text and insert sheet
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2013, 05:05 AM
  2. [SOLVED] adding text to row a b and c while looping
    By rjhe22 in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 01-14-2013, 08:06 AM
  3. looping, Open text file, copy text, close text file
    By jwilds1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2009, 05:12 PM
  4. Looping through text boxes
    By Cygnos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2008, 03:46 PM
  5. Looping -import each text file into a different worksheet and insert a chart
    By uber_shnuber in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2008, 02:57 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1