I try to open Excel file from Ms Access do some changes and quit. The problem is, I can't open in readwrite mode:/. my code is
If I try to use
get error "the attempt failed" in addition I want to create password for my workbook. How should I do this?
Code:
Dim mojexcel As Object
Set mojexcel = CreateObject("Excel.application")
mojexcel.Visible = True
Set wb = mojexcel.workbooks.Open("C:\Users\xw\Desktop\Robocza\ww.xlsx")
wb.worksheets(1).cells(1, 1) = "a2111"
wb.Close
mojexcel.Quit
If I try to use
Code:
wb.changefileaccess xlreadwrite