Thread: UserForm Issue
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Thomas[_21_] Thomas[_21_] is offline
external usenet poster
 
Posts: 2
Default UserForm Issue

Hi,

I am opening an excel spreadsheet with a userform from another application
(see code below) using late binding. I need to populate controls with data.
How do I reference the userform?

Set objExcel = CreateObject("Excel.Application")
Set wbExcel = objExcel.Workbooks.Open("C:\test.xls")

I tried wbExcel.UserForm11.TextBox1.Text and it does not work. Any ideas?

Thanks