Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
i need to open a xls file (located in the same folder),from another xls file. And, once i the file is open, how can i refer to the cells? Thank you regards Giorgio |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Giorgio wrote:
*Hi, i need to open a xls file (located in the same folder),from another xls file. And, once i the file is open, how can i refer to the cells? Thank you regards Giorgio * Hello Giorgio, like this. Code: -------------------- Dim wb As Workbook Set wb = _ Workbooks.Open(ThisWorkbook.Path & _ Application.PathSeparator & _ "YourBookName.xls") 'Change here to your Wkb name. With wb .Sheets("Sheet1").Cells(1, 1).Value = "Test" End With -------------------- ;) --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thankyou very much!
It works! :) -----Original Message----- Giorgio wrote: *Hi, i need to open a xls file (located in the same folder),from another xls file. And, once i the file is open, how can i refer to the cells? Thank you regards Giorgio * Hello Giorgio, like this. Code: -------------------- Dim wb As Workbook Set wb = _ Workbooks.Open(ThisWorkbook.Path & _ Application.PathSeparator & _ "YourBookName.xls") 'Change here to your Wkb name. With wb .Sheets("Sheet1").Cells(1, 1).Value = "Test" End With -------------------- ;) --- Message posted from http://www.ExcelForum.com/ . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put Workbooks.Open in your code and double click on Open
press F1 read the help and view the example. Put Application.ActiveWorkbook.Cells(row, column).Value in your code and double click on Cells press F1 read the help and view the example. regards KM -----Original Message----- Hi, i need to open a xls file (located in the same folder),from another xls file. And, once i the file is open, how can i refer to the cells? Thank you regards Giorgio . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
When i open excel, i i get: Compile error in hidden Module, HELP! | Excel Discussion (Misc queries) | |||
CLASS MODULE & SIMPLE MODULE | Excel Discussion (Misc queries) | |||
Module not file when open the excel file | Excel Discussion (Misc queries) | |||
code in module A to not execute a Worksheet_SelectionChange sub of another module | Excel Discussion (Misc queries) | |||
Variable from a sheet module in a class module in XL XP | Excel Programming |