Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone have any suggestions on how to code it in macro?
If cell A1 = B1 under ABC sheet on DEF.xls file, then process following code, then nothing. Does anyone have any suggestions on how to code and retrieve value from this specific cells? Thanks in advance for any suggestions Eric |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Set Databk = workbooks.open(filename:="c:\temp\DEF.xls") Set Datasht = Databk.sheets("ABC") with Datasht if .Range("A1") = .Range("B1") then 'add your code here end if end With Databk.close savechanges:=false -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189250 http://www.thecodecage.com/forumz/chat.php |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Will it be possible to retrieve the value without opening the worksheet?
Thank you very much for any suggestions Eric "joel" wrote: Set Databk = workbooks.open(filename:="c:\temp\DEF.xls") Set Datasht = Databk.sheets("ABC") with Datasht if .Range("A1") = .Range("B1") then 'add your code here end if end With Databk.close savechanges:=false -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189250 http://www.thecodecage.com/forumz/chat.php . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() there are only two way s of getting data out of a workbook without opening the workbook. 1) Add a formula to a worksheet. You can do this with a macro. 2) Red/Write data to the workbook like a database using the ADO method. This uses the Access Database library functions. This technicaly doesn't open the file but make a connection to the file. You can have multiple people working on the same workbook simulataneously. -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189250 http://www.thecodecage.com/forumz/chat.php |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro code to dll and vba code trouble shoot. | Excel Programming | |||
Slow code when used as VBA code instead of macro (copying visible columns) | Excel Programming | |||
Can I use code/macro to change code/macro in an existing file? | Excel Programming | |||
read macro code by vb code | Excel Programming | |||
do anybody have a sample code for executing excel macro from vb code?<eom | Excel Programming |