Solved

VB text box to excel Cell

Posted on 2000-03-06
1
401 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now