Jason Wood
2004-02-16 06:27:18 UTC
Hello everyone,
I've been manually updating a table on my FP2000 page and now I'm
trying to write some VBA which I can execute with a Macro button.
At the moment I do the following tasks:
1. Paste the table from Excel onto my FP page.
2. Delete the hidden columns that re-appear when the table is pasted
in FP.
3. Highlight several columns one at time and click the right-align
button.
4. Highlight the whole table, click the Table properties and apply a
.gif background.
5. Click to format button and change the text to white, bold, size 10
(my .gif background is a green grass kind of thing!).
A Macro recorder would be a dream for this, but it isn't available in
FP :-(
Clearly, task 1. can be automated! My research has enabled me (on a
test page) to use the CommandBars() object and highlight the test grid
I created and make the backgound turn red (as a test). A small step,
but I see no way of applying my .gif file to the background.
Also, I'm slightly at a loss to how I go about creating the VBA to do
the above list of tasks, as a lot is done via dialogue boxes.
Sample VBA code for table manipulation seems to be thin on the ground.
Can anyone give me some pointers, some ideas, some literature on how
to automate my tasks.
Much appreciated.
I've been manually updating a table on my FP2000 page and now I'm
trying to write some VBA which I can execute with a Macro button.
At the moment I do the following tasks:
1. Paste the table from Excel onto my FP page.
2. Delete the hidden columns that re-appear when the table is pasted
in FP.
3. Highlight several columns one at time and click the right-align
button.
4. Highlight the whole table, click the Table properties and apply a
.gif background.
5. Click to format button and change the text to white, bold, size 10
(my .gif background is a green grass kind of thing!).
A Macro recorder would be a dream for this, but it isn't available in
FP :-(
Clearly, task 1. can be automated! My research has enabled me (on a
test page) to use the CommandBars() object and highlight the test grid
I created and make the backgound turn red (as a test). A small step,
but I see no way of applying my .gif file to the background.
Also, I'm slightly at a loss to how I go about creating the VBA to do
the above list of tasks, as a lot is done via dialogue boxes.
Sample VBA code for table manipulation seems to be thin on the ground.
Can anyone give me some pointers, some ideas, some literature on how
to automate my tasks.
Much appreciated.