Posted 8 September 2017, 1:57 pm EST
I try to get filename from dialog open and set file name to cells but it not work when i choose file and press ok button it show error "out of index" something like this. my code follow by above
If Dialog.ShowDialog() = Windows.Forms.DialogResult.OK Then Filename = Dialog.FileName.ToString Dialog.Dispose() FpSpread2.Sheets(0).Cells(e.Row, 2).Text = Filename End If
please help me.