How to rename Module?

So I’ve managed to cobble together a macro that works for me using various code snippets on this forum, and I managed to figure out how to put it on a toolbar… but haven’t managed to figure out how to rename my Module…

bild

Maybe it’s not important, though, because when I choose “Export BASIC” and look in the file that gets generated, it only seems to contain the ExportToCSV subroutine and no mention of any module.

Open the module for editing, right-click>Rename… the module’s tab.
But that is not the question if you are looking for some way to export Basic code in a way so it can be backed up and distributed to other installations.
Use the “Standard” library as a scratch pad for testing and for user defined Basic functions.
Any productive code should be stored in a separate library. Libraries other than “Standard” can be exported as extensions.
And of course, you should include your entire profile folder - which includes macros, settings, templates and more - in your daily backup strategy.

So how do you open the module for editing? There’s no right click in Tools - Macros - Organize Macros - Basic or Tools - Macros - Edit Macros…

menu:Tools>Macros>Organize>Basic…
Select module, click [Edit…]

Well, that’s where I said I went and that’s where my screenshot in the question is from. There’s no right-click menu there.

Open the module for editing, THEN right-click its tab.

Apparently, this, and only this dialogue, can rename a module, and only by double clicking… very obtuse!

bild

It’s reached from here in the Organize Macros dialog (again, very obtuse):

bild

When using the Basic IDE, select the object in Object Catalog so you code is displayed in the Basic panel. Then Tab (lower circled area) can be left right mouse clicked and renamed:

Screenshot at 2022-05-08 12-37-48

1 Like

Right mouse click…But thanks! I’ve always wondered why we can’t just right-click in the Object Catalog (like, you know, Excel). But I never thought to treat the tab down there like a tab.

1 Like

Thank you. Now corrected.
.
Just to note, it is basically what was posted by @Villeroy. I simply added an image which may provide a better understanding for the OP.