View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
R Tanner R Tanner is offline
external usenet poster
 
Posts: 87
Default Using a Range variable to call a procedure with a ByVal statement...

Hi,

I am trying to call a procedure and I can't figure out how to do it
correctly. This is my call statement.

WorkBook_Open
(filename:=Range("O2").Value,cutrange:=range("O5") .address)

The following is the procedure I am trying to call:

Private Sub WorkBook_Open(ByVal FileName As String, ByVal CutRange As
Range)