Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 337
Default copying columns

I could send this to the Programing form
I want to change the following macro to copy the list to the A column with
formats (color or no color) to a new sheet called Results. I will run the
macro again and place the list in the next column.etc

Sub MyCount()

Dim lw As Integer
Dim MyConstant As Integer
Dim Counter As Integer
Dim rRange As Range
Dim rCell As Range

Set rRange = Range("A2:F31")
lw = Range("A" & Rows.Count).End(xlUp).Row
MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))
Range("K22").Value = MyConstant

For Each rCell In rRange
If rCell.Interior.ColorIndex = 36 Then
Counter = 1 + Counter
End If
Next rCell
Range("K21").Value = Counter

End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying across columns Gemz Excel Worksheet Functions 2 February 27th 08 03:06 PM
copying data down columns juliejg1 Excel Worksheet Functions 4 August 20th 07 08:37 PM
Copying to columns [email protected] Excel Discussion (Misc queries) 4 October 17th 06 06:19 PM
Copying One column into Two columns Dimri Excel Discussion (Misc queries) 1 September 12th 06 06:07 PM
copying columns Deb B. Excel Discussion (Misc queries) 2 November 28th 04 07:55 PM


All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"