Invoke Code-Application is missing

Hello,

I am trying to execute the above code but i am getting the error.
Please let me know whats wrong in this activity

Hello @sharu_priya,

Try this code.

Thank you so much.

It worked. But as soon as the excel is opened after run/debug, i am getting this pop up.

How to handle this

If you’re working with code:

  1. Open the file in read-only mode (no password needed).
  2. If you must edit, you’ll need the password.

Client will not provide the password.So we are giving save as and saving the excel for the edit access.

For that only, i used new file path

  1. Read the File (Read-Only Mode):

a. Drag and drop the Excel Application Scope activity.
b. Set the file path (e.g., "R&D 9-23.xlsx").
c. Check the ReadOnly property.

  1. Save As New File:
  • Inside the Do block of Excel Application Scope, add an Invoke VBA activity with the following script:

  • Provide the VBA script path and file to run it.
  1. Reopen the New File for Editing:

a. After saving the file, use another Excel Application Scope to open the new file (e.g., "R&D 9-23_Edit.xlsx") without enabling ReadOnly.

Its invoke code or invoke VBA

I did not understand this point " * Provide the VBA script path and file to run it."

Use this.

I have enabled this but still getting this error.

can you send your code??

Excel Rename.zip (6.6 KB)

excel sheet not there

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.