This is about excel vba question

tsai yiku 21 Reputation points
2020-07-22T22:48:11.697+00:00

Hi sir,
I always use Getobject to get workbook data, but if the Excel file have password, how can I do?
example : test.xlsm password is "123"

folderPath = Application.ActiveWorkbook.Path
myPath = folderPath & "/test.xlsm"
Set wka = GetObject(myPath)

how to edit this???

thank you for your help.
Office Mac
Office Mac
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Mac: A family of Apple personal computers that run the macOS operating system.
514 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2020-07-22T22:55:29.21+00:00

    Excel development is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
    https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-msoffice_custom
    https://social.msdn.microsoft.com/Forums/Lync/en-US/home?forum=exceldev

    --please don't forget to Accept as answer if the reply is helpful--


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.