Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Q: UDF with Interior.colorindex Help needed

[es] :: Office :: Excel :: Q: UDF with Interior.colorindex Help needed

[ Pregleda: 1280 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mp3lab
DaVa Com
Hrvatska

Član broj: 24064
Poruke: 15
*.duo.carnet.hr.



+1 Profil

icon Q: UDF with Interior.colorindex Help needed14.06.2011. u 23:38 - pre 156 meseci
Hi
I wrote a short function "interior"

Function interior(Rng) As Integer
Application.Volatile True
interior = Rng.interior.ColorIndex
End Function

And that works if I call a function with for instance =interior(c3) an i got
color index of cell c3
but I need color index of cell that contains the function ,
something like if in C3 I put =row() I will got 3

How to do this?

Thank you for reading this especially if you are able to help me out on
this.
Maxx

DVal
 
Odgovor na temu

Brodoplovac
Beograd

Član broj: 171299
Poruke: 838
*.adsl.verat.net.



+166 Profil

icon Re: Q: UDF with Interior.colorindex Help needed15.06.2011. u 07:15 - pre 156 meseci
Function interior1() As Integer
Application.Volatile True
interior1 = Application.Caller.interior.ColorIndex
End Function

U spreadsheet pišeš:
=interior1()


Izgleda da se ova funkcija ne aktivira prilkom ponovne promene boje u ćeliji. Ovaj kod treba staviti u modul Sheet-a za koji se prati promena boje u ćeliji.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Me.Calculate
End Sub



[Ovu poruku je menjao Brodoplovac dana 15.06.2011. u 16:11 GMT+1]
Prikačeni fajlovi
 
Odgovor na temu

mp3lab
DaVa Com
Hrvatska

Član broj: 24064
Poruke: 15
*.duo.carnet.hr.



+1 Profil

icon Re: Q: UDF with Interior.colorindex Help needed15.06.2011. u 22:46 - pre 156 meseci
Hvala ti ko bratu rođenom..
baš mi je to trebalo!!!
DVal
 
Odgovor na temu

[es] :: Office :: Excel :: Q: UDF with Interior.colorindex Help needed

[ Pregleda: 1280 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.