PDA

View Full Version : Help with: Prefill cells with command line switches from a browser



DaiLafing
01-29-2014, 02:14 AM
Hi everyone, I've been coming here a while now, and I can see my question has been partly answered.


I'm looking to have an excell file shared on a windows network to a simple LAN (samba sharing), and then for a user to be able to click on a HTML link that will launch that excell pile, and to have it populate specific and predeterminined cells with information that will be handed to it by the HTML link from the website.


Think of a CRM web app that href is a link like: "\\LAN1\Files\excellbook01.xls?Mrs%20Wendy%20Jones?4%20Skin%20Street"


From something like that I would like to launch excell and have Mrs Jones' details populate into the predefined excell sheet. The HTML website can dynamically populate a HTML link depending on the customer being viewed.


So I'd like to know how two things
1) how to launch a network file in this way, while correctly handing it parameters or switched that it will be able to later:
2) Collect that information and distribute it into the cells I choose in VBA.


I'm familiar with Visual Basic .Net primarily, and have a small amount of VBA experience.


We would like to continue to use Google chrome if possible...


Thanks everyone

westconn1
01-29-2014, 03:09 AM
how to launch a network file in this way, while correctly handing it parameters or switched that it will be able to later:did you try the followhyperlink method of the workbook?

you can use an instance of internet explorer, navigate to the target, then parse the result, from the html elements, into appropriate cells as required
this can be done without displaying the browser window
alternatively you can use some APIs to download the target as a file then parse the saved file and delete (or overwrite next time)

neither of these options affect which browser you use for other tasks