banner_ad

RUNTIME ERROR 76 VISUAL BASIC WHILE PREPARING PTRC TEMPLATE FOR MAHARASHTRA

Others 5742 views 5 replies

Since Last month when we try to prepare *.TXT File for uploading PTRC Return from FORM III B-V-1.0.004.xlsb file, we get the following error:

"RUNTIME ERROR 76 VISUAL BASIC"

Tried checking on Microsoft Site, it explains it can be resolved by editing the File Coding done in Visual Basic, but unable to do so as the file downloaded from PT Portal is locked.

Please provide solution for this issue.

Thanks 

Jignesh Patel

Replies (5)
Its applicable

hello

even i am facing the exact same issue, did you find any solution? ive already enabled the macros setting but it still doesnt work

Hi,

No, it has not been resolved yet, as updated Excel is not supporting Macros, the only available alternate solution is to use system which has older version of excel to generate TXT File.

 

 

I understand that you’re encountering a “RUNTIME ERROR 76” in Visual Basic when trying to prepare a *.TXT file for uploading PTRC Return from the FORM III B-V-1.0.004.xlsb file. Let’s troubleshoot this issue:

  1. Check the File Path:

    • Ensure that the file path you’re using in your VBA code exists and is accessible. The error might occur if the specified path is incorrect or the folder doesn’t exist.
    • Double-check the path where you’re trying to create the *.TXT file.
  2. Quotes Around File Paths:

    • If your file path contains spaces, make sure to enclose it in double quotes. For example:
      folderPathWithName = "N:\Business Assurance Team\3. CONTROLS ASSURANCE\Audits\Compliance\01. Arrears Review\" & FileYear & "\" & FileQuarter & "\" & FileMonth & "\" & CallType & "\" & Branch & "\" & myName
      
  3. File Permissions:

    • If the file downloaded from the PT Portal is locked, you might not have the necessary permissions to edit it. Check if you can save a copy of the file in a different location and then try editing it.
  4. Unlocking the File:

    • If the file is password-protected or restricted, you might need to contact the PT Portal support or the file owner to unlock it.
    • Alternatively, you can try saving a copy of the file with a different name and then work with the copy.
  5. Debugging Your Code:

    • Use breakpoints or debug print statements to check the values of variables (like folderPathWithName) during runtime. This will help you identify any issues.
    • Make sure that all variables are correctly assigned and that the paths are constructed as expected.
  6. Test with a Simple Example:

    • Create a simple VBA scriptt that creates a folder and a file in a known location. Test if it works without any errors. If it does, then the issue might be specific to the PT Portal file.

Remember that the error message “RUNTIME ERROR 76” usually indicates that the specified path is not found. Double-check your paths, ensure file permissions, and try debugging your code step by step. If the issue persists, consider seeking assistance from your IT support or a VBA expert. 

Any one found solution to this??


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
Featured 27 May 2026
Lead Conversion Executive / Sales Closing Executive

SMJ global advisors pvt ltd

New Delhi

B.Com

View Details
Company
ARTICLESHIP 15 May 2026
Audit Assistant / Article Trainee / Intern

SSGS and Associates

Chennai

CA Inter

View Details
Company
ARTICLESHIP 14 May 2026
CA ARTICLE

PRAVEEN GARG & CO

Faridabad

CA Foundation

View Details
Company
26 May 2026
Senior Accountant cum purchase Manager

Vardhaman Group of India

Pimpri Chinchwad

CA Inter

View Details
Company
Featured 28 May 2026
SEMI QUALIFIED/ CA DROPOUTS/ ARTICLES

T R SOOD & CO

New Delhi

CA Inter

View Details
Company
14 May 2026
ICSI Trainees for 21 Months and Semi-Qualified CS

CMNITY HIRE

New Delhi

Others

View Details
Company
ARTICLESHIP 17 May 2026
CA Article /Trainee

Malik Sunil & co

New Delhi

CA Foundation

View Details
Company
ARTICLESHIP 31 May 2026
Article Assistant

KPRS And Associates

New Delhi

CA Inter

View Details