Thema Datum  Von Nutzer Rating
Antwort
Rot Link last Textbox in the Column to the Cell below
15.09.2016 23:02:58 Jens
NotSolved

Ansicht des Beitrags:
Von:
Jens
Datum:
15.09.2016 23:02:58
Views:
930
Rating: Antwort:
  Ja
Thema:
Link last Textbox in the Column to the Cell below

Hey Community! 

I struggeled today and spend to much time trying to find the solution. I have this code: 

___________________________________________
Sub LinkCheckBoxes()
Dim chk As CheckBox
Dim lCol As Long
lCol = 0 'number of columns to the right for link
 
For Each chk In ActiveSheet.CheckBoxes
   With chk
      .LinkedCell = _
         .TopLeftCell.Offset(0, lCol).Address
   End With
Next chk
 
End Sub
__________________________________________
 
This Code is linking all the Checkboxes in the ActiveSheet to the cells below. But now I want to search in the last checkbox in Column A and only apply this operation to this Checkbox. I'm able to find the last cell in Column A but I don't know how to refer to the checkbox above. 
Thanks for your Help, this Forum is so great!! 
 
Jens 

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
Rot Link last Textbox in the Column to the Cell below
15.09.2016 23:02:58 Jens
NotSolved