Thread: sort by colour
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default sort by colour

=Personal.xls!getcolour(range)


Gord


On Thu, 25 Mar 2010 11:51:22 GMT, "BNT1 via OfficeKB.com" <u19326@uwe
wrote:

Hi

Works perfect when copy/paste in module this workbook.

When copy/paste in personal.xls vba it doesnt seem to work

Function getcolour(mycell As Range)
getcolour = mycell.Interior.ColorIndex
End Function

Am i doing something wrong?

regards

BNT1 wrote:
thank you both - did use the datapig as i was able to follow it easier
works perfect
regards

Follow this

[quoted text clipped - 5 lines]

thanks