This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attribute VB_Name = "ModuleReplaceWithExcel" | |
Option Explicit | |
' <original code> | |
' ワード文書の語群をExcelの辞書を使って置換 ver.04 | |
' Author: 渡辺真 | |
' URL: http://makoto-watanabe.main.jp/WordVba_replace.html | |
' | |
' modified By D*isuke YAMAKAWA | |
' last modified: 2012/8/1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub SetShortcutKeys() | |
Dim macroSetting As Variant | |
Dim commandSetting As Variant | |
macroSetting = Array( _ | |
"EraseColor", wdKeyControl + wdKeyQ, _ | |
"EraseHighlight", wdKeyControl + wdKeyT, _ | |
"ToggleUnderline", wdKeyControl + wdKeyW, _ | |
"ToggleHighlight", wdKeyControl + wdKeyE, _ | |
"DobuleUnderline", wdKeyControl + wdKeyD, _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Declare Function IsWindowVisible Lib "user32" _ | |
(ByVal hWnd&) As Long | |
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _ | |
(ByVal hWnd As Long, ByVal lpString As String, ByVal cch As Long) As Long | |
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" _ | |
(ByVal hWnd As Long, ByVal lpClassName As String, _ | |
ByVal nMaxCount As Long) As Long | |
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" _ | |
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long | |
Private Declare Function EnumWindows Lib "user32" _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("This program lists all the files in the directory:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace OppaiAnalysis | |
{ | |
static class OppaiAnalysis | |
{ | |
static public double Cup2Cm(string cup) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'いろんな文字の装飾をまとめて消す | |
Sub EraseDecoration() | |
With Selection.Font | |
.Bold = False '太字 | |
.Italic = False '斜体 | |
.color = wdColorAutomatic '色 | |
.Underline = wdUnderlineNone '下線 | |
.StrikeThrough = wdNone '打ち消し線 | |
End With |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows.Forms; | |
namespace SetSuspend | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Application.SetSuspendState(PowerState.Suspend, false, false); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
namespace Reboot | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ProcessStartInfo psi = new ProcessStartInfo(); | |
psi.FileName = "shutdown.exe"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'各種番号振りなおしマクロ | |
' Created By D*suke YAMAKWA | |
' last modified : 12/10/16 | |
' | |
'段落番号の振りなおし部分(RenumberingParagraph)に関して | |
' original code : 段落番号置換マクロ 03/08/23 By 岡田 | |
' modified By D*suke YAMAKWA | |
' | |
'【マクロの概要】 | |
' 1. 文書中の@を段落番号に置き換えた後、 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd %~dp0 | |
cscript vbac.wsf decombine |