VBA Create Programming Style

kato01

Board Regular
Joined
Sep 9, 2005
Messages
81
Hello,

I use excel to store my macros (source code). I have VBA macros, Python macros, Java Script macros, etc. One sheet per language. It's easy to index, search etc.
I’d like to create a VBA code that formats the cells so that the text populating the cells would automatically adopt a programming language sensitive style (like a programming IDE – for example use green for comments, blue for loops etc.)
Any ideas?

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You'll have to write something and it will be hard work and vast amounts of code, it sounds like you're using the wrong tool. Why not just use an IDE, or a lite IDE like Visual Studio Code with the plugins you need for the languages you want. You can store your code in text files in folders that provides fast search and indexing, you'll get syntax highlighting as well as a load of other benefits.
 
Upvote 0
The idea is to have quick acces to sources. also put it on a webpage so it owuld be easy to access it from anywhwere.

see https://tohtml.com. it's really good
 
Last edited:
Upvote 0
even more reason to use an ide, you can use github to save your work online and make it accessible from anywhere, keeping it in sync
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top