?
Solved

VB text box to excel Cell

Posted on 2000-03-06
1
Medium Priority
?
464 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month17 days, 9 hours left to enroll

830 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