trouble Copying as a webpage

D

daniels012

Below is the code I am using to convert my file to a webpage. It work
ok.

I use buttons at the top of our proposals. When I open the file as a
webpage it has these buttons at the top. Is there a way to get rid o
them? When I print the proposal, the buttons don't show! Any hel
would be greatly appreciated.

Michael


ActiveWorkbook.PublishObjects.Add(xlSourceSheet, _
"C:\WINDOWS\Personal\Emailed Proposals\Proposal" & _
Str(Application.Range("N2").Value), "FRONT", "", xlHtmlStatic, _
"Proposal for XL_16777", "").Publish (True)
ChDir "C:\WINDOWS\Personal\Emailed Proposals"
Range("K1").Select
End Su
 
D

Debra Dalgleish

You could cut the button, save as a web page, then paste the button:

Sheets("FRONT").Shapes("Button 1").Cut
ActiveWorkbook.PublishObjects.Add(xlSourceSheet, _
"C:\WINDOWS\Personal\Emailed Proposals\Proposal" & _
Str(Application.Range("N2").Value), "FRONT", "", xlHtmlStatic, _
"Proposal for XL_16777", "").Publish (True)
ChDir "C:\WINDOWS\Personal\Emailed Proposals"
Sheets("FRONT").Paste
Range("K1").Select
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top