Type mismatch
Posted by orjan on November 05, 2001 10:24 PM
Why does this code generate an error '13' type mismatch at runtime?
Private Sub CommandButton1_Click()
Dim filnavn
filnavn = "m:\regnskap\skifteksport\" + Sheets("Oppsett").Cells("C5").Value + "_" + Sheets("Oppsett").Cells("C6").Value + ".txt"
Workbooks.Open (filnavn)
End Sub
any response will be of great help
orjan