Thema Datum  Von Nutzer Rating
Antwort
08.01.2018 12:01:18 Bifi85
NotSolved
08.01.2018 14:06:51 Gast48594
NotSolved
09.01.2018 09:41:57 Gast88372
NotSolved
09.01.2018 11:55:59 Gast97473
NotSolved
09.01.2018 14:08:24 Bifi85
NotSolved
09.01.2018 15:29:44 Gast72302
NotSolved
Rot Excel: Textfeld kopieren und einfügen (VBA)
09.01.2018 15:47:31 Bifi85
NotSolved
09.01.2018 16:23:25 Gast82034
NotSolved
09.01.2018 16:26:16 Gast62210
NotSolved
09.01.2018 16:31:17 Gast90667
NotSolved
09.01.2018 17:48:51 Bifi85
NotSolved
09.01.2018 18:12:04 fkw48
NotSolved
09.01.2018 18:49:20 Gast46676
NotSolved
09.01.2018 19:41:11 fransi
NotSolved
10.01.2018 14:29:27 Bifi85
NotSolved
10.01.2018 14:54:28 Gast51699
NotSolved
10.01.2018 15:53:15 fransi
NotSolved
10.01.2018 18:20:55 Gast70276
NotSolved
10.01.2018 00:09:34 Gast54080
NotSolved
10.01.2018 00:43:16 Gast93723
NotSolved
10.01.2018 18:57:10 Gast53107
NotSolved
10.01.2018 19:14:09 Gast64046
NotSolved
11.01.2018 10:03:39 Gast39373
NotSolved
11.01.2018 10:05:08 Bifi85
NotSolved
11.01.2018 15:37:22 Gast85672
NotSolved
11.01.2018 17:54:06 Gast43749
NotSolved
12.01.2018 10:18:59 Bifi85
NotSolved
12.01.2018 10:20:38 Bifi85
NotSolved
12.01.2018 15:51:24 Gast31892
NotSolved
12.01.2018 17:10:29 Bifi85
NotSolved
12.01.2018 18:01:33 Gast68462
NotSolved
12.01.2018 19:17:19 Gast70117
Solved
13.01.2018 12:22:09 Bifi85
NotSolved
07.09.2020 21:48:23 Bifi85
NotSolved
08.09.2020 08:20:50 Bifi85
NotSolved

Ansicht des Beitrags:
Von:
Bifi85
Datum:
09.01.2018 15:47:31
Views:
972
Rating: Antwort:
  Ja
Thema:
Excel: Textfeld kopieren und einfügen (VBA)

Ich verstehe absolut gar nichts von diesem VBA. Ich will nur kochen.

Option Explicit
 
Public Sub test()
Const BOX_NAME As String = "Textfeld 1"
Dim objTextBox As Excel.TextBox
Dim dblLeft As Double, dblTop As Double
For Each objTextBox In Sheets("Pizza").TextBoxes
    With objTextBox
        If .Name = BOX_NAME Then
           dblLeft = .Left
           dblTop = .Top
           Call .Delete
           Exit For
        End If
    End With
Next
If objTextBox Is Nothing Then
  Call MsgBox("TextBox mit diesem Namen wurde " & _
     "nicht gefunden...", vbExclamation)
Else
  Application.ScreenUpdating = False
  Call Sheets("Rezept").TextBoxes(BOX_NAME).Copy
  Call Sheets("Pizza").Paste
  If TypeName(Selection) = "TextBox" Then
     With Selection
         .Left = dblLeft
         .Top = dblTop
     End With
  End If
  Set objTextBox = Nothing
  Application.ScreenUpdating = True
End If
End Sub

Funktioniert nicht. "TextBox mit diesem Namen wurde nicht gefunden..."

Funktioniert 1 mal wenn ich ein neues Excel Dokument aufmache und alles reinkopiere zum Test. Dann klappt es nur 1 mal, danach bekomme ich die Fehlermeldung "TextBox mit diesem Namen wurde nicht gefunden..." und wenn es das eine mal klappt, dann ist die Textbox da wo meine Maus war.

Ich will doch nur, dass die eine Textbox die andere 1:1  am Zielort ersetzt. :(


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
08.01.2018 12:01:18 Bifi85
NotSolved
08.01.2018 14:06:51 Gast48594
NotSolved
09.01.2018 09:41:57 Gast88372
NotSolved
09.01.2018 11:55:59 Gast97473
NotSolved
09.01.2018 14:08:24 Bifi85
NotSolved
09.01.2018 15:29:44 Gast72302
NotSolved
Rot Excel: Textfeld kopieren und einfügen (VBA)
09.01.2018 15:47:31 Bifi85
NotSolved
09.01.2018 16:23:25 Gast82034
NotSolved
09.01.2018 16:26:16 Gast62210
NotSolved
09.01.2018 16:31:17 Gast90667
NotSolved
09.01.2018 17:48:51 Bifi85
NotSolved
09.01.2018 18:12:04 fkw48
NotSolved
09.01.2018 18:49:20 Gast46676
NotSolved
09.01.2018 19:41:11 fransi
NotSolved
10.01.2018 14:29:27 Bifi85
NotSolved
10.01.2018 14:54:28 Gast51699
NotSolved
10.01.2018 15:53:15 fransi
NotSolved
10.01.2018 18:20:55 Gast70276
NotSolved
10.01.2018 00:09:34 Gast54080
NotSolved
10.01.2018 00:43:16 Gast93723
NotSolved
10.01.2018 18:57:10 Gast53107
NotSolved
10.01.2018 19:14:09 Gast64046
NotSolved
11.01.2018 10:03:39 Gast39373
NotSolved
11.01.2018 10:05:08 Bifi85
NotSolved
11.01.2018 15:37:22 Gast85672
NotSolved
11.01.2018 17:54:06 Gast43749
NotSolved
12.01.2018 10:18:59 Bifi85
NotSolved
12.01.2018 10:20:38 Bifi85
NotSolved
12.01.2018 15:51:24 Gast31892
NotSolved
12.01.2018 17:10:29 Bifi85
NotSolved
12.01.2018 18:01:33 Gast68462
NotSolved
12.01.2018 19:17:19 Gast70117
Solved
13.01.2018 12:22:09 Bifi85
NotSolved
07.09.2020 21:48:23 Bifi85
NotSolved
08.09.2020 08:20:50 Bifi85
NotSolved