You need to set pptcount
. I changed your code to this:
Sub WriteToTextBoxALL()
Dim i As Integer
Dim pptcount As Integer
Dim tb As Shape
Dim sld As Slide
Dim pres As Presentation
Dim var1 As String
pptcount = Application.Presentations.Count
For i = 1 To pptcount
Set pres = Application.Presentations(i)
var1 = InputBox("Var1")
Set sld = pres.Slides(1)
Set tb = sld.Shapes.AddTextbox(msoTextOrientationHorizontal, 400, 400, 100, 50)
tb.Name = "InsertShape"
tb.TextFrame.TextRange.Text = var1
Next
End Sub
Edit:
For just drawing a normal border to your shape, add
tb.Line.Visible = True
Explanation to with-statements