|
▼ゆーあ さん:
もしかして、私のほうではプログラムが
Private Sub CommandButton6_Click()
Dim ACR As Long
Dim WK_Link As String
Dim WSH
ACR = ActiveCell.Row
WK_Link = Cells(ACR, 1).Value
If WK_Link = "" Then
Cells(ACR, 6).ClearContents
Exit Sub
End If
Cells(ACR, 6).Select
ActiveCell.FormulaR1C1 = "=HYPERLINK(RC[-5],RC[-5])"
Set WSH = CreateObject("Wscript.Shell")
WSH.Run WK_Link, 3
Set WSH = Nothing
Cells(ACR, 2).Select
Worksheets("Sheet1").Select
End Sub
だと考えての発言だったんだけれども
Private Sub CommandButton6_Click()
Dim ACR As Long
Dim WK_Link As String
Dim WSH
ACR = ActiveCell.Row
Cells(ACR, 6).Select
ActiveCell.FormulaR1C1 = "=HYPERLINK(RC[-5],RC[-5])"
WK_Link = Cells(ACR,6).Value
If Cells(ACR,1) = "" then
Cells(ACR, 6).ClearContents
Exit Sub
End If
Set WSH = CreateObject("Wscript.Shell")
WSH.Run WK_Link, 3
Set WSH = Nothing
Cells(ACR, 2).Select
Worksheets("Sheet1").Select
End Sub
のようになってるのかな?
これだったら設定後のA6セルの値を見るんで大丈夫だと思うけども。
|
|