senthil murugn
New Member
Hi,
Need a macro to count the no of specific task name (strings) in Column A.
When used the following code it is working fine but takes too much time (go over the excel's maximum column count)
Set myrange = Worksheets("Sheet1").Range("A:A")
But when used the following code it ends up with error.
Set myrange = Worksheets("Sheet1").UsedRange.Columns("A")
Could you please provide any other alternative workaround.
Thanks & regards
Senthil
Need a macro to count the no of specific task name (strings) in Column A.
When used the following code it is working fine but takes too much time (go over the excel's maximum column count)
Set myrange = Worksheets("Sheet1").Range("A:A")
But when used the following code it ends up with error.
Set myrange = Worksheets("Sheet1").UsedRange.Columns("A")
Could you please provide any other alternative workaround.
Thanks & regards
Senthil