전체 글
엑셀 VBA ShellExcute 함수로 프로그램 실행/제어하기
엑셀 VBA ShellExcute 함수로 프로그램 실행/제어하기
2017.03.08엑셀 VBA ShellExcute 함수를 이용해서 엑셀 외 다른 응용프로그램을 실행/제어를 할 수 있다. [ShellExcute 함수 시 주의사항] 1 2 3 4 5 6 7 8 9 '#1 ShellExecute 사용을 위한 Lib - 최 상단에 선언 '64bit와의 호환을 위해 PtrSafe 이라는 것을 명시해주기! Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" Alias _ "ShellExecuteA" (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As..
엑셀 VBA 텍스트파일 읽어오기
엑셀 VBA 텍스트파일 읽어오기
2017.02.15엑셀 VBA에서 특정 폴더에 있는 모든 텍스트파일을 읽어올 수 있다.아래와 같이 세 개의 텍스트파일이 있을 때, 각 텍스트 파일을 읽어서 엑셀 시트에 입력해보자. 엑셀에서 텍스트파일 순서대로 입력하려고 한다.원하는 결과값은 아래와 같다. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172'작성자 : prohannah2010 '특정 폴더 내에 존재하는 TEXT파일들을 읽어 Excel 내 쓰기Public Sub run_gathering() Dim folder As String Dim folder_dri As String..
Oracle instr 함수로 문자열 자르기
Oracle instr 함수로 문자열 자르기
2017.02.14Oracle instr 함수는 문자열(텍스트)에서 특정 문자의 위치를 리턴해주는 함수입니다. instr 함수와 substr 함수를 함께 사용하여 특정 문자를 기준으로 텍스트를 파싱하여 가져올 수 있습니다. 아래와 같이 '|' 기호로 구분되어 있는 문자열이 있을 때, '|' 기호의 위치를 찾아 substr 함수를 이용하면 내용별로 잘라올 수 있겠죠.12SELECT 'Start|안녕,|반가워!|End' FROM dualcs 이제 '|' 기준으로 문자열을 잘라서 가져와봅시다. 123456789SELECT 내용 , SUBSTR(내용, 1, INSTR(내용, '|', 1, 1) - 1) AS a , SUBSTR(내용, 1, INSTR(내용, '|', 1, 1) + 1, INSTR(내용, '|', 1, 2) - I..
맥북프로 부트캠프로 윈도우 설치하기
맥북프로 부트캠프로 윈도우 설치하기
2017.02.11최근에 구입한 15년형 맥북프로에 부트캠프를 이용하여 윈도우를 설치하기 위해 여러 블로그를 보며 정리한 내용을 공유한다.구버전 가이드를 보면서 부트캠프(bootcamp)를 설치하려고 하니 많이 헤맸는데 다른 분들은 OS/맥모델 버전 문제로 곤란을 겪지 않길 바란다. [준비물]1. Microsoft Windows 8 및 이후 버전(64비트) 디스크 이미지(ISO)는 아래 사이트에서 다운로드한다. https://www.microsoft.com/ko-kr/software-download/windows10ISO2. 2015년 이후 생산 모델은 USB 플래시 드라이브가 필요하지 않다. 하지만 OS X v10.11 El Capitan 및 아래의 더보기 이전 버전의 모델의 경우 USB 플래시 드라이브가 필요하다. M..
Oracle CLOB 컬럼 Select 시 주의사항 (ORA-06502)
Oracle CLOB 컬럼 Select 시 주의사항 (ORA-06502)
2017.01.24Oracle CLOB 컬럼은 Oracle 버전 10g 이후로 지원되는 LOB 타입의 종류 중 하나로, 문자열이나 이미지 데이터를 4GB까지 저장할 수 있습니다.어느 날 화면에서 처리한 데이터가 DB에 정상적으로 들어가있는지 확인하기 위해 Orange에서 CLOB 컬럼을 조회해봤습니다.서비스 Log나 화면 IO를 보면 데이터를 정상적으로 DB에 넣는 것 처럼 보이는데, Orange에서 Select로 조회해보면 일부가 깨져서 보이거나 데이터가 잘리는 현상이 있었습니다. [현상]입력한 값 : 안녕하세요? 테스트 데이터입니다.Orange에서 조회한 CLOB 컬럼의 값 : 안녕하세요? 테스트 [원인]프로그램 오류라 생각하고 몇 시간 동안 로그도 뒤져보고, 비슷한 유형의 다른 프로그램도 테스트해보고 하다가 원인을 ..