Given a choice between API functions and VBA objects that provide similar functionality, I tend to use VBA objects (for reliability reasons), but toda
VBA developers are used to working with xlsx and csv data formats, but JSON, which was born for exchanging data over the internet, is a new format to
I'm using a stock broker's API to retrieve and backtest technical indicators, and I'm getting a 50290 runtime error. It works fine when searching for
In another post, I introduced the VBA-JSON library for reading and creating JSON. Today, I'd like to share a function to read JSON with VBA code. The
DDE is something you come across when you're using a brokerage firm's HTS, and it's a fairly old technology. But I still love it because it's a simple
One of the interesting things about the For~Next Loop in VBA is the Step.Step defaults to 1, but Step 2 will cause the loop to run while incrementing
Outputting data without using a loopIf you are creating a table in a worksheet, you can use a template sheet with pre-made column names, or sometimes
베이직언어의 나름 강점중 하나는 문자열처리인데, 사실 이건 과거의 영광이다. 베이직의 라떼시절에는 타언어와 비교하여 편리하고 강력했다. mscorlib 타입라이브러리에는 ArrayList외에 몇 가지 사용가능한 개체가 있는 데, 그중 'StringBuilder'라는 게
The map function executes a specified function for each item in an iterable. The item is sent to the function as a parameter.In JavaScript, the map()
Userform을 만들려는 경우 디자인 단계에서 원하는 컨트롤을 배치하고, 속성과 이벤트 프로시저를 작성한다. 하지만 경우에 따라 Userform이 실행하면서 컨트롤을 만들고 속성과 이벤트 프로시저를 추가할 필요가 있다. 이번 예에서 Userform에 콤보 컨트롤을
MOD함수는 나눗셈의 나머지를 돌려준다. 인싸인 VLOOKUP과 달리 사람들이 기억해주지 않는 아싸함수이다. 얘를 첨 보았을 때, 이해가 가지 않았다. 뭐 이런 함수를 뭐하러 만들었지...별 쓸데없어 보이는데.. 기껏 사용하는 것이 짝수행이나 홀수행마다 색칠을 하거나
VBA 실행속도는 느린 데, 그 이유에는 몇 가지가 있다. 우선 인터프리터형 언어이기 때문에 소스코드를 한 줄 한 줄 읽어서 해석되어 실행되기 때문이다. 두 번째는 엑셀의 워크시트에 쓰는 경우 더욱 더 느려진다. 그래서 VBA가 실행되는 동안 워크시트 렌더링을 잠시 막
For~Next 루프를 배울 때 흥미로운 것중 하나는 Step이다.기본적으로 1씩 증가하면서 루프를 돌지만,Step 을 사용하면 주어진 값만큼 건너 뛰면서 루프를 돌게 된다. Step 2라고 하면 카운터 변수가 2씩 증가하면서 루프가 실행되고 Step -1하면 역방향으