FoxProProgrammer
Programmer
Hello folks,
Several weeks ago I posted here about a problem that I was having inserting a web counter into a spreadsheet. A few kind people attempted to help me resolve the issue, but couldn't come up with a solution. I figured out a workaround but it's not ideal. To quickly summarize:
I registered for a free web counter. The company that provides the web counter gave me code to include in my HTML file that displays a web counter on my web page. The web page is generated from an Excel spreadsheet using the Save As Webpage option. I couldn't get Excel to properly save the code for the web counter, which would automate the entire update process. My workaround is to open the HTML file that Excel creates in WordPad and manually pasting the HTML code for the web counter. Then I have to open the HTML file with FrontPage to properly position the web counter image. If possible I am trying to automate this process so I don't have to do it manually everytime I update my spreadsheet.
One idea that I had was to open the HTML file in Excel and paste the HTML code through VB code. I tried the Open Method, OpenAsTextStream Method, and OpenTextFile Method to no avail. Does anyone know how to do this?
I want to do the following:
1. Open the HTML file that contains my updated spreadsheet.
2. Open a text file that contains the HTML code for the web counter.
3. Copy the text from the file in step 2 and insert it at a specific location in the file opened in step 1.
Any help would be greatly appreciated.
Thanks!
Prayers to our troops in the Middle East.
dz
dzaccess@yahoo.com
Several weeks ago I posted here about a problem that I was having inserting a web counter into a spreadsheet. A few kind people attempted to help me resolve the issue, but couldn't come up with a solution. I figured out a workaround but it's not ideal. To quickly summarize:
I registered for a free web counter. The company that provides the web counter gave me code to include in my HTML file that displays a web counter on my web page. The web page is generated from an Excel spreadsheet using the Save As Webpage option. I couldn't get Excel to properly save the code for the web counter, which would automate the entire update process. My workaround is to open the HTML file that Excel creates in WordPad and manually pasting the HTML code for the web counter. Then I have to open the HTML file with FrontPage to properly position the web counter image. If possible I am trying to automate this process so I don't have to do it manually everytime I update my spreadsheet.
One idea that I had was to open the HTML file in Excel and paste the HTML code through VB code. I tried the Open Method, OpenAsTextStream Method, and OpenTextFile Method to no avail. Does anyone know how to do this?
I want to do the following:
1. Open the HTML file that contains my updated spreadsheet.
2. Open a text file that contains the HTML code for the web counter.
3. Copy the text from the file in step 2 and insert it at a specific location in the file opened in step 1.
Any help would be greatly appreciated.
Thanks!
Prayers to our troops in the Middle East.
dz
dzaccess@yahoo.com