L
lothario
Hi,
When the user clicks on a button I created (call it "update_a"), I
would like to:
1. Get the data from cell d48 (call it "index_a") and
cell g93 (call it "data_a") in the current sheet s1
in the current workbook w1.
2. Open another workbook w8 in the background.
3. In w8 go to sheet s6 and find the the "index_a" value
in column h.
4. If you cannot find "index_a" value in column h, then you
display a popup error message "index_a not found".
5. If you find "index_a" in h345 then assign g345 the
result of g345 - "data_a"
6. Close workbook w8 in the background.
Also, I would like to:
a. Ensure that workbook w8 is not visible while it
is being opened, updated and closed.
b. Interaction with workbook w8 is fast and completely
transparent to the user.
Please show me the VBA code to do all of the above.
Thanks.
Luther
When the user clicks on a button I created (call it "update_a"), I
would like to:
1. Get the data from cell d48 (call it "index_a") and
cell g93 (call it "data_a") in the current sheet s1
in the current workbook w1.
2. Open another workbook w8 in the background.
3. In w8 go to sheet s6 and find the the "index_a" value
in column h.
4. If you cannot find "index_a" value in column h, then you
display a popup error message "index_a not found".
5. If you find "index_a" in h345 then assign g345 the
result of g345 - "data_a"
6. Close workbook w8 in the background.
Also, I would like to:
a. Ensure that workbook w8 is not visible while it
is being opened, updated and closed.
b. Interaction with workbook w8 is fast and completely
transparent to the user.
Please show me the VBA code to do all of the above.
Thanks.
Luther