Hi all,
I need your assistance to help me to open, close & saved a database file.
Below is the VB Script ,
Thank you in advance
![]()
Please Login or Register to view this content.
Hi all,
I need your assistance to help me to open, close & saved a database file.
Below is the VB Script ,
Thank you in advance
![]()
Please Login or Register to view this content.
Hi,
The following will probably do what you want, but has no error checking.
For an example of some of the same code with extensive error checking see post #3 or post #5 from http://www.excelforum.com/excel-gene...ta-weekly.html![]()
Please Login or Register to view this content.
Lewis
Dear Lewis,
Thank you for your reply, but
can this script combined with my "updatelogworksheet"? because I want the
file open & after update it'll closed & saved by itself... thanks again![]()
namialus,
Try this. It opens the file, runs your macro code, then saves and closes the file.
Lewis
![]()
Please Login or Register to view this content.
Dear Lewis,
I received error "run-time error 9 ; subscript out of range"
& yellow mark at script line :
Set inputWks = Worksheets("source")
Note : The database file opened but no input ...
Thank you again![]()
I didn't test the macro the first time because I didn't think anything could go wrong, go wrong, go wrong. I was misinformed. I apologize.
I had to move the item in blue to the beginning of the macro. The macro was looking for Sheet 'source' in the wrong workbook.
Try again with:
Lewis![]()
Please Login or Register to view this content.
Dear Lewis,
The macro working , thank you very much![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks