Pre-determining or setting DivID for publishing from Excel t

joefrench

Active Member
Joined
Oct 4, 2006
Messages
357
I am creating an excel file with which i'd like to automate publishing to HTML format. Can I have one macro that will publish the "active sheet". It seems that I am running into a problem with the "DivID" portion of it. I know of no way to predetermine this value or set it to accept the "active sheet".
This is what I currently have:
With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"\\Cjdata1\design engineering common\ENGINEERING_STANDARDS\customer\" & ActiveSheet.Range("a1").Value & ".htm", "2821227", "$A$1:$T$38", _
xlHtmlStatic, , "1952_27894", "281227")
.Publish (True)
End With


My problem being the "1952_27894"

Any suggestions or comments are welcome.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,141,012
Messages
5,703,729
Members
421,312
Latest member
Mooncake1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top