エクセル チェックボックスを削除

type Posted in Excel
0

Excel

[表示]->[ツールバー]->[コントロールツールボックス]

定規みたいのを押して デザインモード に入り

消す。

excel vba

type Posted in Excel
0

エラー処理のプログラムを加える。

http://mailpg.pgtop.net/article/126233032.html

VBAの処理を途中で停止させる

http://ac.accessclub.jp/bbs3/0166/superbeg55928.html

フラグ処理
If XX Then Exit Sub
単に停止
STOP

excel vba 一定時間毎にマクロを実行

type Posted in Excel
0

一定時間毎にマクロを実行

http://www.traderspage.biz/blog/2006/07/post_72.html

Sub test() 実行間隔 = Now + TimeValue(“00:00:30″) ‘(30秒後)
Application.OnTime TimeValue(実行間隔),
“test1″ ‘実行させるマクロ名
End Sub
Sub test1() ‘ここへマクロを記入
Application.Run “test” ‘戻す
End Sub

Excel Vba InStr関数

type Posted in Excel, Windows
0


http://officetanaka.net/excel/vba/function/InStr.htm

構文
InStr([start,]string1,string2[,compare])
引数startは省略可能です。検索を始める位置を指定します。
引数string1には、検索の対象となる文字列を指定します。
引数strign2には、引数string1の中から検索する文字列を指定します。
引数compareは省略可能です。文字列を比較するモードを指定します。

解説
InStr関数は、引数string1で指定した文字列の中から引数string2で指定した文字列を検索して、見つかった位置を返します。たとえば、InStr(“ABCDEF”, “DE”)は4を返します。
指定した文字列が見つからなかった場合や、引数に長さ0の文字列を指定した場合などにInStr関数が返す値は次のとおりです。
内容 値
引数string1が長さ0の文字列(“”)のとき 0
引数string1がNull値のとき Null値
引数string2が長さ0の文字列(“”)のとき 引数startに指定した値
引数string2がNull値のとき Null値
引数string2が見つからないとき 0
引数startの値が引数string1の文字数を超えるとき 0