Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default How to xFer via VBA a VBA variable to Form

2003

With the Control ToolBox displayed on an "Sheet1," in the Design Mode,
the "Formula Bar" displays =EMBED("Forms.TextBox.1","").

Currently, I have linked TextBox1 to cell M3. Therefore, when I enter
text into M3, it is displayed in the TextBox1.

Yes, I can "populate" TextBox1 in VBA by:

sheets("Sheet1").Range("M3").value = txt ("txt" is a variable in a
VBA procedure)

How can I get the VBA variable directly into TextBox1?

Under properties, I see separate "Text," "Value," and as mentioned
above, LinkedCell dropdowns.

Is there a way to populate TextBox1 directly in VBA? (without using
LinkedCell = M3)?

Like: ActiveSheet.Shapes("TextBox1").Value = "bbb" (if the
Object/Method supported it)


TIA EagleOne

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default How to xFer via VBA a VBA variable to Form

ActiveSheet.TextBox1.Text = "bbb"

txt = "bbb"
ActiveSheet.TextBox1.Text = txt

--
Allllen


"EagleOne" wrote:

2003

With the Control ToolBox displayed on an "Sheet1," in the Design Mode,
the "Formula Bar" displays =EMBED("Forms.TextBox.1","").

Currently, I have linked TextBox1 to cell M3. Therefore, when I enter
text into M3, it is displayed in the TextBox1.

Yes, I can "populate" TextBox1 in VBA by:

sheets("Sheet1").Range("M3").value = txt ("txt" is a variable in a
VBA procedure)

How can I get the VBA variable directly into TextBox1?

Under properties, I see separate "Text," "Value," and as mentioned
above, LinkedCell dropdowns.

Is there a way to populate TextBox1 directly in VBA? (without using
LinkedCell = M3)?

Like: ActiveSheet.Shapes("TextBox1").Value = "bbb" (if the
Object/Method supported it)


TIA EagleOne


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
Baffling! Spreadsheet Data Form Size Jim Excel Discussion (Misc queries) 0 May 4th 06 07:41 PM
Merge Excel data into specific form areas in a Word Doc duugg Excel Discussion (Misc queries) 1 April 21st 06 08:25 PM
Pleeze Help! Export Excel data into a form in a Word Doc...this one's tough! duugg Excel Discussion (Misc queries) 1 April 21st 06 02:35 PM
Aling multiple sets of data by header column MarkusO Excel Discussion (Misc queries) 2 April 12th 06 07:29 PM
user form question: text box to display result BigPig Excel Discussion (Misc queries) 0 February 28th 06 12:33 AM


All times are GMT +1. The time now is 05:13 PM.

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"