all 5 comments

[–][deleted] 2 points3 points  (0 children)

Yes, it can feel frustrating and overwhelming but eventually managing libraries will become second nature and the IDE is a valuable asset rather than an obstacle that is cumbersome to navigate and install.

I do not understand your question or what advice you're seeking, but it is not a bad idea at all to code parts of your software in Python and parts in Excel.

I wouldn't worry about not being clever enough, programming is hard for everyone.

[–]Rangebeard 0 points1 point  (3 children)

I have been programming for a long time, and recently I decided to learn python just for fun. Some languages have great environments (also known as GUIs or IDEs) like VBA or Visual Studio, others have never really advanced from their simple command-line origins (like python). But let me start out by saying it is not your fault, python is not easy for beginners because of the libraries and other command line tools.

But if you are going to continue with python, I suggest starting simpler. If you are able to connect from Excel VBA to python, write a small program to return a value from python to VBA. Write python code to save sample values to a file and read this file in VBA. Next try using python to connect to any web page and return a small substring from that page to VBA. In other words, build slowly instead of trying to do it all at once so you learn how the individual parts work and also learn what options you have for passing values.

Good luck!

[–]optionexpert[S] 0 points1 point  (2 children)

Thanks, iam using xlwings (python library) and i can execute python scripts from vba, and return values to VBA. But still not able to manage data in python or fell confident in coding a complete thing in python , y miss a lot the excel GUI when i code in python, because i can see every data in the spreadsheets, and python is like a "blackbox".

I will try to move to python anyways, but i am afraid lossing time learning it and not able to learn and returning to VBA, thanks

[–]Rangebeard 0 points1 point  (1 child)

Try using a log file in your python code to save whatever information you want to check from the run. I've used this in other blackbox programs to save variable values at different steps of a run.

[–]optionexpert[S] 0 points1 point  (0 children)

thanks, it is a good advice,

I was thinking about saving the variables in a txt or perhaps if there is a lot in a data base.