Hmm okay, that's a pity then. Thanks for another helpful reply Norie.
A second question ( I don't know if I should make another thread for this, I suppose not.)
I have the following code:
Private Sub CommandButton7_Click()
Dim Filepath As String
Dim Filename As String
Filename = InputBox("Please give a filename for the FMECA file.")
Filepath = "C:\Users\Devin\Desktop\" & Filename & ".xlsx"
Workbooks.Add.SaveAs (Filepath)
With Workbooks(Filepath).Sheets("Sheet1")
.Range("A1") = "test"
End With
End Sub
But it gives me an error, with something about that the subscript is out of reach.
What I want to do, is open a new excel file, the user gives an input name and then I want to write something in a cell in the newly made workbook.
Everyone on the internet says that you have to use a range or cells, but I can't manage to get it working..
Bookmarks