View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kieran[_42_] Kieran[_42_] is offline
external usenet poster
 
Posts: 1
Default ATPVBAEN.XLA!Random Call in Macro

Frank & Pam

Try this amendment

Sub GenRandomNumbers()

Application.Run "ATPVBAEN.XLA!Random", Sheets(2).Range("$a$15"), 1, 99
7, , Sheet(1).Range("MyRange")

End Sub

This assumes that the active workbook will be used.
If you want to reference other than the active workbook you will nee
to further qualify the sheets() reference like thi
workbook.sheets(n).et

--
Message posted from http://www.ExcelForum.com