Using VBA in Super Office and access to internal database?

lock
push_pin
done
Besvarat
1

Hi all,

Is it possible to use VBA in Super Office to query our own database to retrieve data? Does Super Office allow access to that?
 
Thank you.
 
Regards

1. apr. 2026 | 11:30 fm

Allt Svar (1)

Hi Christian!

Funny story, SuperOffice (Windows App) onsite used to have an embedded VBA engine (COM) that ran scripts in the client based on user activity/events. 

You didn't state online or onsite, so I'll just assume onsite for now. Sure, you can use VBA code to call SuperOffice API's, but there's the security hurdle that you have to get around. It's not safe or secure to tuck credentials in VBA code, so as long as you can securely get access to a supported form of credentials, then you could access the APIs. As for direct Database access, well then again yes, assuming you have credentials that can get your in the database server and instance, you would wind up using ADO classes for direct SQL calls.

You didn't state a use case, so assuming it's for Excel, this example demonstrates how to populate an Excel spreadsheet using Basic credentials (not safe or secure, but possible).

If you share your use-case I'm confident this question would garner more responses based on the similar experiences in the community.

Best regards!

9 h, 33 m sedan | 08:23 fm
Hi Tony.

Thanks for your reply.

We use the online version of Super Office.

We use message templates for newsletters and want to automate more the work, hence, using our internal database to retrieve the text and have them populated automatically in the template in Super Office. Would that be possible?

Regards
Christian
8 h, 42 m sedan | 09:14 fm

Lägg till svar