Solved

copying into excel from excel

Posted on 2000-05-15
1
157 Views
Last Modified: 2010-05-02
how can i read in values from a row and column  from another excel workbook and then paste them in my excel workbook?
i also need to know if i want to paste that value in the row and column i want.
0
Comment
Question by:bazukei
[X]
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
1 Comment
 
LVL 1

Accepted Solution

by:
manchula earned 20 total points
ID: 2813276
Dim xlApp As Excel.Application
Dim xlBook As Excel.Workbook
Dim xlSecondBook As Excel.Workbook
Dim xlSheet As Excel.Worksheet
Dim xlSecondSheet As Excel.Worksheet

Private Sub Command1_Click()
    xlSecondSheet.Cells(1, 5) = xlSheet.Cells(3, 1)
    'Give the row index and col index for Cells. Syntax Cells(RowIndex,ColIndex)

End Sub

Private Sub Form_Load()

Set xlApp = New Excel.Application
Set xlBook = GetObject("c:\temp\test.xls")
Set xlSheet = xlBook.Sheets(1)

Set xlSecondBook = GetObject("c:\temp\test1.xls")
Set xlSecondSheet = xlSecondBook.Sheets(1)

End Sub
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

733 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