Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2011, 10:23 AM
imogul imogul is offline Copy Row based on yellow highlighting. Windows XP Copy Row based on yellow highlighting. Office 2003
Novice
Copy Row based on yellow highlighting.
 
Join Date: Jun 2011
Posts: 2
imogul is on a distinguished road
Default Copy Row based on yellow highlighting.

I'm pulling my hair out cause I figured this out last year and now I can't find it.

I am given this spread sheet monthly that has conditional formatting applied already. Column B has various notes, and the ones with the word "faculty" are highlighted by conditional formatting.

I need to copy the rows, where cell B is highlighted yellow, into sheet 2. Any help would be appreciated!
Reply With Quote
  #2  
Old 09-28-2011, 01:24 AM
OTPM OTPM is offline Copy Row based on yellow highlighting. Windows 7 32bit Copy Row based on yellow highlighting. Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
You could try using an Advanced Filter that copies discrete rows where a column contains the word "faculty" to a new sheet.
Hope this helps.
Good luck.
Tony(OTPM)
Reply With Quote
  #3  
Old 09-28-2011, 04:11 AM
Catalin.B Catalin.B is offline Copy Row based on yellow highlighting. Windows Vista Copy Row based on yellow highlighting. Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Try this code:
Code:
Sub CopyRows()
Dim i As Integer, nextrow As Long

nextrow = Sheets("Sheet2").Range("A:A").End(xlUp).Row - 2
For i = 1 To 100

        If Sheets("Sheet1").Cells(i, 2).Value = "faculty" Then

       Sheets("Sheet1").Cells(i, 2).EntireRow.Copy Sheets("Sheet2").Range("A" & nextrow)
            

        End If
nextrow = nextrow + 1
    Next i
   
End Sub
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Row based on yellow highlighting. highlighting Donnathompson Word 4 08-07-2011 05:21 PM
Copy Row based on yellow highlighting. Line Highlighting britmaniee Excel 1 06-29-2011 12:59 AM
Easier highlighting? atarei Word 0 08-27-2010 05:28 PM
copy a file which does not have copy option jkind Word 0 01-17-2010 09:25 AM
Text Highlighting in Yellow ??? mark4man Publisher 0 12-15-2005 06:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft