18. marts 2016 - 13:56Der er
3 kommentarer og 1 løsning
Formler i excel
Hej Eksperter
Hvis jeg har flere Excel ark i samme mappe, kan jeg så lave en formel i ark 13(celle I13), der kan søge efter celler med tyk kant i C13-AG13 i de øvrige 12 ark?
Sub CheckFrame() Dim c As Range Dim Sht As Worksheet x = 0 For Each Sht In ActiveWorkbook.Worksheets Sht.Activate Sht.Range("C13:AG13").Select For Each c In Selection If c.Borders(xlEdgeLeft).LineStyle = xlContinuous Then If c.Borders(xlEdgeLeft).Weight = xlMedium Then If c.Borders(xlEdgeRight).LineStyle = xlContinuous Then If c.Borders(xlEdgeRight).Weight = xlMedium Then If c.Borders(xlEdgeTop).LineStyle = xlContinuous Then If c.Borders(xlEdgeTop).Weight = xlMedium Then If c.Borders(xlEdgeBottom).LineStyle = xlContinuous Then If c.Borders(xlEdgeBottom).Weight = xlMedium Then x = x + 1 End If End If End If End If End If End If End If End If Next c Next Sht MsgBox ("Der er " & x & " celler med ramme") End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.
Følg dette spørgsmålOpretPreview
Flere spørgsmål fra Office & Kontorpakker kategorien