Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ted Ted is offline
external usenet poster
 
Posts: 48
Default Write Data from Control on a Windows Form

Would someone tell me how to write data from a text or combo box on a Windows
Form to the Active Cell in an Excel spreadsheet?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Write Data from Control on a Windows Form

Ted

It basically looks like this

ActiveCell.Value = Userform1.Combobox1.Text
ActiveCell.Value = Userform1.Textbox1.Text

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Ted" wrote in message
...
Would someone tell me how to write data from a text or combo box on a

Windows
Form to the Active Cell in an Excel spreadsheet?



  #3   Report Post  
Posted to microsoft.public.excel.programming
Ted Ted is offline
external usenet poster
 
Posts: 48
Default Write Data from Control on a Windows Form

Dick,
Thanks, it looks like it worked fine in VBA. Just 1 other question? I
am unable to reference the ActiveCell in .Net (VS Tools for Office). Which
has led me to try something like the following... Dim intRange As Excel.Range
= Me.thisWorksheet.Range("ActiveCell").
Would you know how I could reference the Active Cell in .Net? so that I
can write from the Windows Form to the Cell and recieve from the Cell back to
the Form?
Ted

"Dick Kusleika" wrote:

Ted

It basically looks like this

ActiveCell.Value = Userform1.Combobox1.Text
ActiveCell.Value = Userform1.Textbox1.Text

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Ted" wrote in message
...
Would someone tell me how to write data from a text or combo box on a

Windows
Form to the Active Cell in an Excel spreadsheet?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Write Data from Control on a Windows Form

Ted

I don't know. If you ask in microsoft.public.vsnet.vstools.office I'll bet
you'll get an answer. I'll bet its

Me.thisWorksheet.Activecell

but you should really ask the experts.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Ted" wrote in message
...
Dick,
Thanks, it looks like it worked fine in VBA. Just 1 other question?

I
am unable to reference the ActiveCell in .Net (VS Tools for Office).

Which
has led me to try something like the following... Dim intRange As

Excel.Range
= Me.thisWorksheet.Range("ActiveCell").
Would you know how I could reference the Active Cell in .Net? so that

I
can write from the Windows Form to the Cell and recieve from the Cell back

to
the Form?
Ted

"Dick Kusleika" wrote:

Ted

It basically looks like this

ActiveCell.Value = Userform1.Combobox1.Text
ActiveCell.Value = Userform1.Textbox1.Text

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"Ted" wrote in message
...
Would someone tell me how to write data from a text or combo box on a

Windows
Form to the Active Cell in an Excel spreadsheet?






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
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
Write data back from a form to sheet Steen Excel Discussion (Misc queries) 9 October 22nd 08 01:22 PM
Windows - Delayed Write Failed Stephen C Excel Discussion (Misc queries) 1 December 13th 06 03:05 PM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
Tool Tip Text for Form control/ Active-X control Freddie[_2_] Excel Programming 0 October 19th 04 04:14 AM


All times are GMT +1. The time now is 05:22 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"