Centar za edukaciju-BiH
Glavni meni
Portal
iCentar
Statistike
Procitajte pravila
Donacije
Forumi
Racunari i oprema
Softver i op. sistemi
Hardver i mreze
Programiranje i baze
Nauka i tehnika
Nauka
Tehnika
Dom, porodica, biznis
Dom i porodica
Biznis
Sport i zabava
Sport i rekreacija
Zabava
Ostalo
Zanimljivosti
Linkovi
Zonic Design
iCentar
→
Racunari i oprema
→
Softver i operativni sistemi
→
Ms office
→
Kako da obrisem redove sa markiranim celijama
Pretrazi
Tim
Registriraj se
Vazni alati
Razno. veze
Oznaci forume kao procitane
Smjernice
Aktivne teme ...
u posljednja 24 sata
od moje posljednje posjete
Vijesti (RSS, ...)
RSS 2.0
RSS 1.0
OPML
Klipfolio
Atom 1.0
Prijavi se
Odgovori na temu
Korisnicko ime:
Adresa e-poste:
Sigurnosna provjera:
Unesite znakove na slici. Ovo bi trebalo izbjeci nezeljenu postu.
Predmet:
Objavi:
Pomoc
Boja
Odaberite boju
Velicina
Odaberite velicinu
Veliki font
Mali font
Prosireni font
vise smajlica
vise smajlica
Crazy
Egoistic
Helpless
Angel
Question
Attention
Information
E-mail
Search
No
Idea
Heart
Have a look-around
Yes
[quote=Avko][quote=White Man]Taj kod vec postoji u onom Vasem primeru, ja sam u taj fajl iskopirao tablicu i nece, obrise samo one prve koji postoje od pre. Iskopirao sam ponovo ovaj kod sa sajta i ponovo nece. Da nema neke veze sa nijansom boje? Meni je sam excel iz konditional/duplicate values obojio celije i sad trebam da obrisem redove. Excel je 2016 ako i to ima neke veze. Hvala unapred[/quote] ima veze do color indexa, stavio sam 38 pa je obriso samo redove koji su imali 38. Postoji indexa 56 boja idemo probati vidjeti koje se sve boje nalaze pritisnes Alt+F11 izaberes iz menija insert + module u taj modul ubacis ovaj kod: (sada je to vec drugi modul modul2) [code] Sub ko****je() Dim lRow As Long Dim iCntr As Long Dim boje(56) lRow = ActiveSheet.UsedRange.Rows.Count For iCntr = lRow To 1 Step -1 boje(ColorIndex(Cells(iCntr, 1))) = boje(ColorIndex(Cells(iCntr, 1))) + 1 Next iCntr Dim txt As String For iCntr = 0 To 56 If boje(iCntr) > 0 Then txt = txt & CStr(iCntr) & vbNewLine Next iCntr MsgBox txt End Sub '--------------------------------------------------------------------- ' ColorIndex Function '--------------------------------------------------------------------- ' Function: Returns the colorindex of the supplied range ' Synopsis: Initially, gets a colorindex value for black and white ' from the activeworkbook colour palette ' Then works through each cell in the supplied range and ' determines the colorindex, and adds to array ' Finishes by returning acumulated array ' Variations: Determines cell colour (interior) or text colour (font) ' Default is cell colour ' Constraints: Does not count colours set by conditional formatting '--------------------------------------------------------------------- ' Author: Bob Phillips ' Additions for ranges suggested by Harlan Grove '--------------------------------------------------------------------- '--------------------------------------------------------------------- Function ColorIndex(Rng As Range, _ Optional text As Boolean = False) As Variant '--------------------------------------------------------------------- Dim cell As Range, row As Range Dim i As Long, j As Long Dim iWhite As Long, iBlack As Long Dim aryColours As Variant If Rng.Areas.Count > 1 Then ColorIndex = CVErr(xlErrValue) Exit Function End If iWhite = WhiteColorindex(Rng.Worksheet.Parent) iBlack = BlackColorindex(Rng.Worksheet.Parent) If Rng.Cells.Count = 1 Then If text Then aryColours = DecodeColorIndex(Rng, True, iBlack) Else aryColours = DecodeColorIndex(Rng, False, iWhite) End If Else aryColours = Rng.Value i = 0 For Each row In Rng.Rows i = i + 1 j = 0 For Each cell In row.Cells j = j + 1 If text Then aryColours(i, j) = _ DecodeColorIndex(cell, True, iBlack) Else aryColours(i, j) = _ DecodeColorIndex(cell, False, iWhite) End If Next cell Next row End If ColorIndex = aryColours End Function '--------------------------------------------------------------------- Private Function WhiteColorindex(oWB As Workbook) '--------------------------------------------------------------------- Dim iPalette As Long WhiteColorindex = 0 For iPalette = 1 To 56 If oWB.Colors(iPalette) = &HFFFFFF Then WhiteColorindex = iPalette Exit Function End If Next iPalette End Function '--------------------------------------------------------------------- Private Function BlackColorindex(oWB As Workbook) '--------------------------------------------------------------------- Dim iPalette As Long BlackColorindex = 0 For iPalette = 1 To 56 If oWB.Colors(iPalette) = &H0 Then BlackColorindex = iPalette Exit Function End If Next iPalette End Function '--------------------------------------------------------------------- Private Function DecodeColorIndex(Rng As Range, _ text As Boolean, _ idx As Long) '--------------------------------------------------------------------- Dim iColor As Long If text Then iColor = Rng.Font.ColorIndex Else iColor = Rng.Interior.ColorIndex End If If iColor < 0 Then iColor = idx End If DecodeColorIndex = iColor End Function '--------------------------------------------------------------------- ' End of ColorIndex Function '--------------------------------------------------------------------- [/code] pritisnes Alt+Q za povratak u normalni list pritisnes Alt+F8 i sa popisa odaberes svoju makronaredbu ko****je Pokreni Sto je napisalo, koje brojeve?[/quote]
Povecaj velicinu
·
Smanji velicinu
Provjeri duzinu
Opcije:
Pretvori smajlice u postu
Pretvori & quot; vokable & quot; u postu
Prilozi:
Upravljanje prilozima
Mozete priloziti 3 datoteke!
Posljednjih 15 postova u ovoj temi
Ova tema sadrzi vise od 15 postova. Kliknite
ovdje
da biste pogledali cijelu temu.
Predmet: