Alan seçilebilen InputBox çalıştıran ve seçilen alanı mesaj olarak gösteren VBA kodudur.
Option Explicit
Sub AlanSecilebilenInputBoxCalistir()
Dim alan As Range
Dim hucre As Range
On Error Resume Next
Set alan = Application.InputBox("Hücre adresini girin: ", Type:=8)
MsgBox alan.Address & " alanı seçildi."
End Sub