Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 372589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:13:32+00:00 2026-05-12T14:13:32+00:00

I am interested if it’s possible to do string encryption/decryption using Excel Visual Basic

  • 0

I am interested if it’s possible to do string encryption/decryption using Excel Visual Basic and some cryptographic service provider.

I have found a walk-through Encrypting and Decrypting Strings in Visual Basic, but it seems it’s valid for standalone Visual Basic only.

So would you suggest me another encryption method or show how the walk-through could be adopted for Excel Visual Basic?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:13:32+00:00Added an answer on May 12, 2026 at 2:13 pm

    The link you provide shows how to perform string encryption and decryption using VB.NET, and thus, using the .NET Framework.

    Currently, Microsoft Office products cannot yet use the Visual Studio Tools for Applications component which will enable Office products to access the .NET framework’s BCL (base class libraries) which, in turn, access the underlying Windows CSP (cryptographic server provider) and provide a nice wrapper around those encryption/decryption functions.

    For the time being, Office products are stuck with the old VBA (Visual Basic for Applications) which is based on the old VB6 (and earlier) versions of visual Basic which are based upon COM, rather than the .NET Framework.

    Because of all of this, you will either need to call out to the Win32 API to access the CSP functions, or you will have to “roll-your-own” encryption method in pure VB6/VBA code, although this is likely to be less secure. It all depends upon how “secure” you’d like your encryption to be.

    If you want to “roll-your-own” basic string encryption/decryption routine, take a look at these link to get you started:

    Encrypt a String Easily
    Better XOR Encryption with a readable string

    vb6 – encryption function
    Visual Basic 6 / VBA String Encryption/Decryption Function

    If you want to access the Win32 API and use the underlying Windows CSP (a much more secure option), see these links for detailed information on how to achieve this:

    How to encrypt a string in Visual Basic 6.0

    Access to CryptEncrypt (CryptoAPI/WinAPI) functions in VBA

    That last link is likely the one you’ll want and includes a complete VBA Class module to “wrap” the Windows CSP functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 221k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think I've got it: std::set<int>::iterator it1 = set_1.begin(); std::set<int>::iterator… May 13, 2026 at 12:12 am
  • Editorial Team
    Editorial Team added an answer After playing with this some more I came up with… May 13, 2026 at 12:12 am
  • Editorial Team
    Editorial Team added an answer I haven't tried DWR yet but have used DOJO and… May 13, 2026 at 12:12 am

Related Questions

I am interested if it's safe to install both TortoiseCVS and TortoiseSVN on the
I am interested if it is possible (via plugin or other means) to add
I am interested if it's possible to do string encryption/decryption using Excel Visual Basic
I am interested, if it is possible to have collection with same elements in
Due to deployment restrictions, we can't deploy WCF on the client-side (yet) but would

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.