VBA에서 안녕하세요 세계
                                            
                                                
                                                
                                                
                                                
                                                
                                                 9077 단어  MacOSXVMwareFusionExcelVBA
                    


Summary
Mac 용 Mac 및 Excel 용 Win VMWare에서 VBA를 작성하기위한 환경 설정
 Conclusion
VBA 코드를 MacOSX 와 Win 로 공유하는 것은 무리일지도...
VBA は Excel for Win 一択
Mac, Winで使うなら Python を使うことを考えてみる
callmekohei's 마음이 부러진 포인트
Excel for Mac で・・・・
    ADO, FSO etc.の扱いが難しい(というか僕にはむり〜)
    VBEで日本語が入力、出力できない
    32bit and 64bit の問題も多分出てくると思う・・・
 환경
(MacOSX)
$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.13.6
BuildVersion:   17G65
(VMWare)
Menu bar > VMWare Fusion > About VMWare Fusion
VMWare Fusion 8.5.10
(Microsoft Excel for Mac)
Menu bar > Excel > About Microsoft Excel
Microsoft Excel for Mac
Version 16.16.2
Mac용 Excel에서 비트를 확인하는 방법
$ pwd
/Applications/Microsoft Excel.app/Contents/MacOS
$ file Microsoft\ Excel 
Microsoft Excel: Mach-O 64-bit executable x86_64
(Microsoft Excel)
파일 > 계정 > 엑셀 버전 정보
Microsoft Excel 2013
Version 15.0.5067.1000 32bit
 Prepare
 입력 소스
input source 전환 바로 가기를 Shift Space로 설정
reason : VBE에서의 단어 완성이 Ctrl Space이므로 쓰지 않게 한다
how : AppleSymbolicHotKeys plist dict 변경
# 下記コマンドをターミナルで実行して再起動
$ defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 60 "<dict><key>enabled</key><true/><key>value</key><dict><key>parameters</key><array><integer>32</integer><integer>49</integer><integer>131072</integer></array><key>type</key><string>standard</string></dict></dict>"
see also :
 OS X에서 Shift + Space에서 입력 소스를 전환하는 방법
 시스템 환경설정을 터미널(defaults 명령)에서 설정하는 방법(Mission Control)
 마음대로 독서 독서회 - 그 08 (사이고)
 what do the parameter values in AppleSymbolicHotKeys plist dict represent?
 control-command-D 설정은 어디로 갔습니까? Add Star
 Function key
Function key( F5, F11 etc.. ) 를 다이렉트에 사용할 수 있도록 한다
reason : Debug run ( F5 ), launch VBE ( F11 )를 사용할 수 있도록 하기 위해서
how : System preferences 변경
Menu bar > apple mark > System preferences > Keyboard > Keyboard
    Use F1,F2, etc key... にチェックをつける
 Install
VMWare Fusion
 VMWare
Windows10( install on VMWare )
 Windows10
ライセンスが必要?
callmekohei は昔購入した win8 pro のライセンスキーを入力しました
Font ( install on Win , Win's VBE에서 사용하기(개인적 취향))
 Mig2M
Excel (for win and mac)
 Microsoft Store
sign in > account > order history > Manage subscriptions > Install
 Setting of VMWare
 install VMWare Tools
// Windows10 を立ち上げた状態で
01. Virtual Machine > Install VMWare Tools
02. デスクトップ上にでてきたボタン?を押して exe を実行する
 File sharing
// Windows10 を立ち上げた状態で
menu bar > Virtual Machine > Setting > Sharing
    on : Enable Shared Folders
    Mirrored Folders( Desktop, Documents, Downloads )
 키 맵핑
OSX 바로 가기를 Windows에서 사용할 수 없도록 설정
Windows에서 Cmd Q를 눌렀을 때 VMWare가 종료되지 않도록 방지
// Windows10 を立ち上げた状態で
menu bar > Virtual Machine > Setting > Keyboard and Mouse
    add Profile file ( press + button )
    Mac Host Shortcuts
        Off : Enable Mac OS Host Keyboard Shortcuts
    Fusion Shortcuts 
        Off : Quit
 Setting of Win
MS-IME 전환을 Shift Space로 설정
reason : OSX와 동일하게 만들기
how : MS-IME 에서 키보드 단축키 설정
編集操作 > キー設定 > 変更
    キー     : Shift+Space
    入力/変換 : IMEオン/オフ
see also: 스트레스 해소! Mac과 VMware Fusion에서 일본어 입력 키를 동일하게 만드는 방법
 Setting of VBE
VBE 의 설정은 기호로・・・
Excel for Mac
Alt F11
Menu bar > Excel > preferences
Excel for win
Alt F11
ツール > オプション
callmekohei's recommend
( excel for mac )
Off : Editor > code setting > Auto Syntax check
On  : Editor > code setting > Require Variable Declaration
( excel for win )
off : 編集 > コードの設定 > 自動構文チェック
on  : 編集 > コードの設定 > 変数の宣言を強制する
callmekohei's font
( excel for mac )
consolas
( excel for win )
Mig2M
callmekohei's color
 
 
 
 
 
 
 
 
 
 
see also:
 【엑셀 VBA】 처음부터 알고 싶은 VBE의 단축키 정리
 【엑셀 VBA】VBE에 코멘트 블록의 단축키를 설정하는 방법
 도전
Excel for Win의 VBE 글꼴을 consolas 설정하여 일본어를 표시하고 싶습니다!
 
Windows10でフォントリンクがうまく働かない
callmekohei가 한 일
// 1. レジストリエディターで SystemLink をひらく
コンピューター\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
// 2. Conslas ファイルを作成
MEIRYO.TTC,Meiryo,128,96
を記入
// 3. 再起動
결과
  
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(VBA에서 안녕하세요 세계), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/callmekohei/items/f78868e92cf2ae0fe516
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
VBA は Excel for Win 一択
Mac, Winで使うなら Python を使うことを考えてみる
Excel for Mac で・・・・
    ADO, FSO etc.の扱いが難しい(というか僕にはむり〜)
    VBEで日本語が入力、出力できない
    32bit and 64bit の問題も多分出てくると思う・・・
$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.13.6
BuildVersion:   17G65
VMWare Fusion 8.5.10
Microsoft Excel for Mac
Version 16.16.2
$ pwd
/Applications/Microsoft Excel.app/Contents/MacOS
$ file Microsoft\ Excel 
Microsoft Excel: Mach-O 64-bit executable x86_64
Microsoft Excel 2013
Version 15.0.5067.1000 32bit
# 下記コマンドをターミナルで実行して再起動
$ defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 60 "<dict><key>enabled</key><true/><key>value</key><dict><key>parameters</key><array><integer>32</integer><integer>49</integer><integer>131072</integer></array><key>type</key><string>standard</string></dict></dict>"
Menu bar > apple mark > System preferences > Keyboard > Keyboard
    Use F1,F2, etc key... にチェックをつける
ライセンスが必要?
callmekohei は昔購入した win8 pro のライセンスキーを入力しました
// Windows10 を立ち上げた状態で
01. Virtual Machine > Install VMWare Tools
02. デスクトップ上にでてきたボタン?を押して exe を実行する
// Windows10 を立ち上げた状態で
menu bar > Virtual Machine > Setting > Sharing
    on : Enable Shared Folders
    Mirrored Folders( Desktop, Documents, Downloads )
// Windows10 を立ち上げた状態で
menu bar > Virtual Machine > Setting > Keyboard and Mouse
    add Profile file ( press + button )
    Mac Host Shortcuts
        Off : Enable Mac OS Host Keyboard Shortcuts
    Fusion Shortcuts 
        Off : Quit
編集操作 > キー設定 > 変更
    キー     : Shift+Space
    入力/変換 : IMEオン/オフ
Alt F11
Menu bar > Excel > preferences
Alt F11
ツール > オプション
( excel for mac )
Off : Editor > code setting > Auto Syntax check
On  : Editor > code setting > Require Variable Declaration
( excel for win )
off : 編集 > コードの設定 > 自動構文チェック
on  : 編集 > コードの設定 > 変数の宣言を強制する
( excel for mac )
consolas
( excel for win )
Mig2M
Windows10でフォントリンクがうまく働かない
// 1. レジストリエディターで SystemLink をひらく
コンピューター\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
// 2. Conslas ファイルを作成
MEIRYO.TTC,Meiryo,128,96
を記入
// 3. 再起動
Reference
이 문제에 관하여(VBA에서 안녕하세요 세계), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/callmekohei/items/f78868e92cf2ae0fe516텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)