+ Reply to Thread
Results 1 to 3 of 3

macro vba rows above text

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    Slovakia
    MS-Off Ver
    Profesional plus
    Posts
    9

    macro vba rows above text

    Hello, please can you help me create macro. I have in dataset twice name pavol. But i would like to delete all of rows above first name pavol. but rows above second name pavol do not delete. But above first name pavol we have now 8 rows. but in second dataset can have 13 rows.in third dataset can have 5 rows. Please can you help me . i tried all what i know but it do not work. thank you

    I have this dataset :
    10
    jozef
    peter
    karol
    juraj
    10
    13
    lubos
    pavol
    juraj
    jozef
    karol
    dusan
    pavol
    peter
    karol

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: macro vba rows above text

    Assume list is in Col A from row 1 down.

    Please Login or Register  to view this content.
    Hope this helps

    Ochimus
    Last edited by Ochimus; 12-08-2020 at 09:15 PM.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: macro vba rows above text

    delete all of rows above first name pavol
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. VBA Macro to keep 400~ text string rows
    By Coyote_e in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-06-2019, 11:18 PM
  2. [SOLVED] Macro to insert blank rows below the text in Col D and copy the text in the new row
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-16-2018, 02:25 PM
  3. Macro to keep rows that have certain text in one column, delete rows that do not.
    By mandalope in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 02:35 PM
  4. [SOLVED] Macro/VBA to Change Order of Rows/Add Rows based on specific text content presence/absence
    By cmaunder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2013, 04:50 PM
  5. Text to rows macro
    By Esteban1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 07:39 AM
  6. [SOLVED] Macro to check row's text colour and if text in below rows matches
    By Raulus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2012, 06:28 AM
  7. [SOLVED] Text to Rows - macro help please
    By AmandaN in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2012, 09:49 AM

Tags for this Thread

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