HI,
When I Run the automail code i get the output like below (excel table align in Center) . Suggest me How to align "HTML Excel table " to the Left side.
image.jpg
regards
shiva
HI,
When I Run the automail code i get the output like below (excel table align in Center) . Suggest me How to align "HTML Excel table " to the Left side.
image.jpg
regards
shiva
Last edited by shiva_raj; 12-31-2018 at 12:36 AM. Reason: inserted image
I've not studied the code in detail yet but where is the cursor when the macro is run?
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
As you are using the publishobject I think you need to change the alignment of the used range first
![]()
Please Login or Register to view this content.
HI Andy,
Thank you for reply. I want to align entire table "to the left".
HI Richard, thank you for reply. Code is running properly. But in the final output (as in image) excel table comes in the middle. I want to align that entire excel table to the "Left side" only. help me.
In that case you will need to add some HTML around the sText variable in order to left align content.
& "< html > < body >< div align=""left"" >" & stext & "< /div >< /body >< /html >" _
& vbNewLine & vbNewLine _
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks