Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default write to external workbook from userform

from an excel 2003 userform, how could i write data entered, to an existing
external workbook?
thanks!
don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default write to external workbook from userform


Either add a save button to the userform or write a trigger for when an
entry is changed. The value of the entered data can be accessed by
-myControl.Value - where -myControl- is the name of the control that
was used (for example -TextBox1-, the default name for the first
textbox you add to the userform). To open a workbook, you can use
-Workbooks.Open(filepath)-. To give yourself easy access to this new
workbook, you can create a static variable as a workbook (-Static
myWorkbook As Workbook-) and then assign the opened workbook to that
variable (-Set myWorkbook = Workbooks(filename)-). Now you can do
whatever you want with that workbook. Hope that helps, let me know if I
confused you or if I completely missed your question.


--
Raman325
------------------------------------------------------------------------
Raman325's Profile: http://www.excelforum.com/member.php...o&userid=24748
View this thread: http://www.excelforum.com/showthread...hreadid=396571

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
Write cell info to external file BigIan Excel Worksheet Functions 7 November 14th 05 04:33 PM
write to external file mgasparel[_3_] Excel Programming 2 February 21st 05 05:02 PM
Write no closed workbook ? MAS Excel Programming 2 July 31st 04 04:39 PM
External data references in a userform control jmikerea[_3_] Excel Programming 2 July 17th 04 01:11 PM
Write to closed workbook code Todd Huttenstine[_3_] Excel Programming 4 May 4th 04 09:59 AM


All times are GMT +1. The time now is 08:04 AM.

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

About Us

"It's about Microsoft Excel"