Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VB text box to excel Cell

Posted on 2000-03-06
1
421 Views
Last Modified: 2008-03-03
How can I transfer data from a text box into a specific named file, worksheet and cell of an excel spreadsheet.

Excel file name "Account.xls"
Worksheet 1
Cell (C,10)

Text box named "acc_text"

I need to export the data to the spreadsheet from my VB application.
0
Comment
Question by:shelfordr
1 Comment
 

Accepted Solution

by:
Wigmans earned 50 total points
ID: 2589459
Shelfordr,

Set xlApp = CreateObject("Excel.Application")
xlApp.Workbooks.Open ("Account.xls" )
xlApp.Worksheets("sheet1").Range("C10").Select
xlApp.ActiveCell.FormulaR1C1 = acc_text.Text

Good luck
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question