Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am happy that it worked for you.
Essentially once you get a reference to Excel by Set objExcel = CreateObject("Excel.Application") you can get a reference to any Excel object (Workbooks, Worksheets, Range,...) through objExcel... "Store a reference of a excel workbook" wrote: Thank you very much Sheeloo. Its Working :) "Sheeloo" wrote: Use this Const xlDelimited = 1 Set objExcel = CreateObject("Excel.Application") fOpen=objExcel.Workbooks.OpenText ("C:\Scripts\Test1.txt",,,xlDelimited,,,,,,,True," ,") objExcel.Visible = True if fOpen=true Then set wb=objExcel.Workbooks("Test.txt") wb.Sheets("Test").Range("A1").Value="Code OK" end if |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Retrieving data from Excel and store it into string variable | Excel Programming | |||
Retrieving data from Excel and store it into string variable | Excel Programming | |||
Retrieving data from Excel and store it into string variable | Excel Programming | |||
Retrieving data from Excel and store it into string variable | Excel Programming | |||
Retrieving data from Excel and store it into string variable | Excel Programming |