gypsyjoe11
Registered User.
- Local time
- Today, 06:57
- Joined
- Feb 19, 2010
- Messages
- 46
Hi Everyone,
I don't have any folder/install permissions at work and we're forced to use internet explorer 6.
I've automated a bunch of tasks for the office staff where they have to log into the HR/Training web app. After they login they can run my program to do a variety of mundane tasks. It handles the Javascript menu trees and pop-up boxes.
Currently they have to print out a couple of tables from different places and then manually highlight certain lines on them. Then the hardcopies are put into a package for approval by different people. The tables are not organized and it takes awhile to do it by hand.
I'm trying to figure out a way to change the background color or certain table rows and then print out the webpage.
I've tried:
From the above it looks like the formating info for the row I want to highlight is in the first row cell (TD).
I've tried the below to change it without success in the immediate window
Any ideas? Also wondering how to print out the webpage?
thanks,
Joe
I don't have any folder/install permissions at work and we're forced to use internet explorer 6.
I've automated a bunch of tasks for the office staff where they have to log into the HR/Training web app. After they login they can run my program to do a variety of mundane tasks. It handles the Javascript menu trees and pop-up boxes.
Currently they have to print out a couple of tables from different places and then manually highlight certain lines on them. Then the hardcopies are put into a package for approval by different people. The tables are not organized and it takes awhile to do it by hand.
I'm trying to figure out a way to change the background color or certain table rows and then print out the webpage.
I've tried:
Code:
Dim myTable As HTMLTable
Set myTable = mainFrame.getElementsByTagName("TABLE").Item(6)
debug.Print myTable.rows(5).getElementsByTagName("TD")(0).outerhtml
<TD class=PSLEVEL1GRIDODDROW align=left height=14>000232 </TD>
From the above it looks like the formating info for the row I want to highlight is in the first row cell (TD).
I've tried the below to change it without success in the immediate window
Code:
myTable.rows(5).getElementsByTagName("TD")(0).value = "<TD style=""background-color:yellow;"" class=PSLEVEL1GRIDODDROW align=left height=14>000232 </TD>"
'Gives error object doesn't support this property or method
myTable.rows(5).getElementsByTagName("TD")(0).outerhtml.value = "<TD style=""background-color:yellow;"" class=PSLEVEL1GRIDODDROW align=left height=14>000232 </TD>"
'gives error object required
myTable.rows(5).getElementsByTagName("TD")(0).outerhtml = "<TD style=""background-color:yellow;"" class=PSLEVEL1GRIDODDROW align=left height=14>000232 </TD>"
'gives error 600 - application defined error
Any ideas? Also wondering how to print out the webpage?
thanks,
Joe