Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default remote writing to userforms


I am trying to write to a userform from a macro. Consequently, the
userform is a part of a macro of another workbook (workbook-B).

I wrote a macro in workbook-A... it activates a macro in workbook-B.
Part of workbook-B's subroutine opens a userform that requires addition
info. I have the data to populate the userform, but do not know how to
insert the data into the userform from the macro in workbook-A.

Anyone have any experience here?


--
tad_wegner
------------------------------------------------------------------------
tad_wegner's Profile: http://www.excelforum.com/member.php...o&userid=27770
View this thread: http://www.excelforum.com/showthread...hreadid=472818

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default remote writing to userforms

You could pass the values to tye macro as arguments, and then use those
value as properties in the userform and load there.

Workbook A

Application.Run "WorkbookB.xls!that_macro", 4,8

Workbook B
Standard module

Sub that_macro(a,b)
Userform1.Value1 = a
Userform1.Value2 = b
Userform1.Show
End Sub

Userform

Public Value1 as Long
Public Value2 As Long


"tad_wegner" wrote
in message ...

I am trying to write to a userform from a macro. Consequently, the
userform is a part of a macro of another workbook (workbook-B).

I wrote a macro in workbook-A... it activates a macro in workbook-B.
Part of workbook-B's subroutine opens a userform that requires addition
info. I have the data to populate the userform, but do not know how to
insert the data into the userform from the macro in workbook-A.

Anyone have any experience here?


--
tad_wegner
------------------------------------------------------------------------
tad_wegner's Profile:
http://www.excelforum.com/member.php...o&userid=27770
View this thread: http://www.excelforum.com/showthread...hreadid=472818



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why are the help files now remote? Sean Excel Discussion (Misc queries) 2 April 1st 06 10:11 PM
remote links mcarrington Excel Worksheet Functions 1 September 22nd 05 02:52 AM
remote links mcarrington Excel Discussion (Misc queries) 3 September 22nd 05 12:14 AM
remote functions rob1234 Excel Worksheet Functions 1 May 12th 05 06:18 PM
remote refrences ian Excel Programming 0 October 3rd 03 12:21 PM


All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"