hi Jayaraku thanx for pain taken by you,
 pls tell me how to put that code in sheet and i have to do it for 60 
months sheets these sheets are only of oct then how can i put in sheet and 
get results pls elaborate

On Saturday, 20 June 2015 00:41:29 UTC+5:30, Jayaraju Metta wrote:
>
> Hi Uday 
> You can use below vba code to get all yellow colored cells in to columns 
> Sub coloredcells() 
>     Dim rowcount As Long 
>     Dim columnCount As Long 
>     Dim matchedrow As Long 
>     Dim matchedcoln As Long 
>     Dim CellColor As String 
>     Dim coloredsheet As Worksheet 
>     Dim pastedrow As Long 
>     ThisWorkbook.Sheets.Add(After:=Worksheets("oct66")).Name = 
> "HighlightedCellsCopied" 
>         CellColor = vbYellow 
>     Set coloredsheet = ThisWorkbook.Worksheets("oct66") 
>     coloredsheet.Activate 
>    With coloredsheet 
>     rowcount = .Cells(Rows.Count, 1).End(xlUp).Row 
>     columnCount = .Cells(12, Columns.Count).End(xlToLeft).Column 
>     For matchedrow = 1 To rowcount 
>         For matchedcoln = 1 To columnCount 
>             If .Cells(matchedrow, matchedcoln).Interior.Color = CellColor 
> Then 
>             .Cells(matchedrow, matchedcoln).Copy 
>              pastedrow = 
> Worksheets("HighlightedCellsCopied").Cells(Rows.Count, 
> 1).End(xlUp).Offset(1, 0).Row 
>             .Paste Worksheets("HighlightedCellsCopied").Cells(pastedrow, 
> 1) 
>             ActiveSheet.Columns.AutoFit 
>             End If 
>         Next matchedcoln 
>     Next matchedrow 
>     End With 
>     MsgBox ("All Colored cells has been copied to columns") 
> End Sub 
>
> refer attached excel for results 
>
> Regds, 
> Jayaraju Metta 
>
> On Tue, Jun 16, 2015 at 4:52 PM, uday chaurasiya <udayka...@gmail.com 
> <javascript:>> wrote: 
> > How can i get highlighted cells in columns 
> > 
> > -- 
> > Regards, 
> > Uday Kant Chaurasiya 
> > 
> > -- 
> > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? 
> It’s 
> > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> > https://www.facebook.com/discussexcel 
> > 
> > FORUM RULES 
> > 
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please 
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
> will 
> > not get quick attention or may not be answered. 
> > 2) Don't post a question in the thread of another member. 
> > 3) Don't post questions regarding breaking or bypassing any security 
> > measure. 
> > 4) Acknowledge the responses you receive, good or bad. 
> > 5) Jobs posting is not allowed. 
> > 6) Sharing copyrighted material and their links is not allowed. 
> > 
> > NOTE : Don't ever post confidential data in a workbook. Forum owners and 
> > members are not responsible for any loss. 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "MS EXCEL AND VBA MACROS" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to excel-macros...@googlegroups.com <javascript:>. 
> > To post to this group, send email to excel-...@googlegroups.com 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/excel-macros. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Regards, 
> Jayaraju.M 
> +91-9492162134 
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to