Share via

VBA , cant delete Microsoft Objects in VBA

Anonymous
2022-12-09T20:49:43+00:00

Hello

We have created a workbook in VBA and using R it read and writes back to the workbook.

The problem is that when it writes using openxlsx package and saveworkbook it creates a lot of Microsoft Objects in VBA.

Is there a way to delete the Microsoft Objects ?

Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2022-12-12T15:18:10+00:00

    Looks like you modified the VBA project and did something fundamental wrong?

    IMHO the question is not how to delete this modules but to avoid the creation. Show me your code and at best the file too.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-12-12T15:04:55+00:00

    Hello and thanks for your reply. See below the image.

    Sheet35 - Sheet47 are objects that have been created and we can't delete them. They don't correspond to any sheet. You can find the in the Developer tab / VBA on the left site.

    In contrast to sheet 48 / sheet49 which correspond to actual sheets.

    Is there a way to delete Sheet35 - Sheet 47 ?

    Was this answer helpful?

    0 comments No comments
  3. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2022-12-11T09:43:30+00:00

    Show me what you mean by "Microsoft Objects" and where you see them.

    Andreas.

    Was this answer helpful?

    0 comments No comments