Thema Datum  Von Nutzer Rating
Antwort
19.05.2014 11:37:25 Corina
NotSolved
19.05.2014 12:10:36 Gast8163
NotSolved
19.05.2014 12:35:42 Corina
NotSolved
19.05.2014 13:25:45 Gast56918
NotSolved
19.05.2014 14:22:25 Corina
NotSolved
19.05.2014 15:09:43 Gast68239
NotSolved
19.05.2014 15:11:58 Gast23935
NotSolved
19.05.2014 16:43:56 Corina
NotSolved
19.05.2014 17:22:24 Gast3719
NotSolved
19.05.2014 17:23:48 Gast27941
NotSolved
19.05.2014 19:16:36 Corina
NotSolved
19.05.2014 20:11:09 Gast61166
NotSolved
19.05.2014 20:13:37 Gast59302
NotSolved
20.05.2014 02:11:10 Trägheit
*****
Solved
20.05.2014 02:14:17 Gast171
NotSolved
20.05.2014 02:19:09 Gast47584
NotSolved
20.05.2014 08:48:32 Corina
NotSolved
20.05.2014 12:04:09 Corina
NotSolved
20.05.2014 13:34:25 Gast34851
NotSolved
20.05.2014 13:36:03 Gast92132
NotSolved
20.05.2014 14:07:52 Gast4790
NotSolved
20.05.2014 16:55:57 Corina
NotSolved
21.05.2014 01:02:20 Gast30287
NotSolved
21.05.2014 04:34:36 Hmm..Hmm..
*****
Solved
21.05.2014 09:05:18 Corina
NotSolved
21.05.2014 09:05:19 Corina
NotSolved
21.05.2014 10:49:15 Corina
NotSolved
21.05.2014 11:14:37 Hmm..Hmm..
NotSolved
21.05.2014 13:47:27 Corina
NotSolved
21.05.2014 14:27:23 Hmm..Hmm..
NotSolved
21.05.2014 15:32:33 Gast95016
NotSolved
21.05.2014 16:12:52 Corina
NotSolved
21.05.2014 16:41:02 Trägheit
NotSolved
21.05.2014 16:48:15 Gast85266
NotSolved
21.05.2014 17:10:03 Corina
NotSolved
21.05.2014 17:26:09 Gast35846
NotSolved
21.05.2014 17:40:14 Gast99977
NotSolved
22.05.2014 09:01:10 Corina
NotSolved
22.05.2014 13:53:40 Trägheit
NotSolved
22.05.2014 13:56:24 Gast96342
NotSolved
22.05.2014 14:14:34 Corina
NotSolved
Blau Blau DANKE!
22.05.2014 14:19:27 Trägheit
NotSolved
21.05.2014 17:10:05 Corina
NotSolved
21.05.2014 15:20:49 Gast85291
NotSolved
Rot Alternative Lösung
21.05.2014 18:14:22 Trägheit
NotSolved

Ansicht des Beitrags:
Von:
Trägheit
Datum:
21.05.2014 18:14:22
Views:
1973
Rating: Antwort:
  Ja
Thema:
Alternative Lösung

Mir kam gerade ein Gedanke...

Beim Frame:

With shpFrame
      .Name = SC_FRM_PREFIX & Replace$(.Name, " ", "")

und bei der CheckBox

With shpChk
      .Name = SC_CHK_PREFIX & Mid$(shpFrame.Name, Len(SC_FRM_PREFIX) + 1)

 

Jetzt kann man, dadurch das die Namen nach dem Präfix zwischen Frame und CheckBox gleich sind, den zu suchenden Text aus dem Frame lesen, statt aus der Zelle (welche ja nicht zwangsweise stimmen muss - aus dem Grund hab ich das mit der Zelladresse im Namen auch vermeiden wollen).

'////////////////////////////////////////////////////////////////
'//
Private Sub RefreshSubcategoryCheckBox(CheckBox As Object)
  
  Dim rngSubcategoryCol As Excel.Range
  Dim rngResult As Excel.Range
  Dim shpFrame As Excel.Shape
  
  Set shpFrame = CheckBox.Parent.Shapes(SC_FRM_PREFIX & Mid$(CheckBox.Name, Len(SC_CHK_PREFIX) + 1))
  
  Set rngSubcategoryCol = ThisWorkbook.Worksheets(SC_WKS_DATATABLE_NAME).Columns("G")
  Set rngResult = rngSubcategoryCol.Find(shpFrame.TextFrame2.TextRange.Text, LookIn:=xlValues, LookAt:=xlWhole)
  
  CheckBox.Value = Not (rngResult Is Nothing)
  
End Sub

 


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
19.05.2014 11:37:25 Corina
NotSolved
19.05.2014 12:10:36 Gast8163
NotSolved
19.05.2014 12:35:42 Corina
NotSolved
19.05.2014 13:25:45 Gast56918
NotSolved
19.05.2014 14:22:25 Corina
NotSolved
19.05.2014 15:09:43 Gast68239
NotSolved
19.05.2014 15:11:58 Gast23935
NotSolved
19.05.2014 16:43:56 Corina
NotSolved
19.05.2014 17:22:24 Gast3719
NotSolved
19.05.2014 17:23:48 Gast27941
NotSolved
19.05.2014 19:16:36 Corina
NotSolved
19.05.2014 20:11:09 Gast61166
NotSolved
19.05.2014 20:13:37 Gast59302
NotSolved
20.05.2014 02:11:10 Trägheit
*****
Solved
20.05.2014 02:14:17 Gast171
NotSolved
20.05.2014 02:19:09 Gast47584
NotSolved
20.05.2014 08:48:32 Corina
NotSolved
20.05.2014 12:04:09 Corina
NotSolved
20.05.2014 13:34:25 Gast34851
NotSolved
20.05.2014 13:36:03 Gast92132
NotSolved
20.05.2014 14:07:52 Gast4790
NotSolved
20.05.2014 16:55:57 Corina
NotSolved
21.05.2014 01:02:20 Gast30287
NotSolved
21.05.2014 04:34:36 Hmm..Hmm..
*****
Solved
21.05.2014 09:05:18 Corina
NotSolved
21.05.2014 09:05:19 Corina
NotSolved
21.05.2014 10:49:15 Corina
NotSolved
21.05.2014 11:14:37 Hmm..Hmm..
NotSolved
21.05.2014 13:47:27 Corina
NotSolved
21.05.2014 14:27:23 Hmm..Hmm..
NotSolved
21.05.2014 15:32:33 Gast95016
NotSolved
21.05.2014 16:12:52 Corina
NotSolved
21.05.2014 16:41:02 Trägheit
NotSolved
21.05.2014 16:48:15 Gast85266
NotSolved
21.05.2014 17:10:03 Corina
NotSolved
21.05.2014 17:26:09 Gast35846
NotSolved
21.05.2014 17:40:14 Gast99977
NotSolved
22.05.2014 09:01:10 Corina
NotSolved
22.05.2014 13:53:40 Trägheit
NotSolved
22.05.2014 13:56:24 Gast96342
NotSolved
22.05.2014 14:14:34 Corina
NotSolved
Blau Blau DANKE!
22.05.2014 14:19:27 Trägheit
NotSolved
21.05.2014 17:10:05 Corina
NotSolved
21.05.2014 15:20:49 Gast85291
NotSolved
Rot Alternative Lösung
21.05.2014 18:14:22 Trägheit
NotSolved