Solved

VB text box to excel Cell

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
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…

821 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