Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Publish worksheet by command button?

Status
Not open for further replies.

cottontop

Technical User
Jul 12, 2001
105
US
TIA

Trying to publish a worksheet in a workbook to the intranet, this is not working:

Private Sub CommandButton1_Click()
'
' Saves goals to intranet
'
'
With ActiveWorkbook.PublishObjects("Current_Goals")
.Filename = "\\Server\Goals\cgoals\cgoals_curr.htm"
.Publish (False)
End With

End Sub

Of course, this is a recorded macro.

Any help?
 
Thanks RamziSaab,

If you do that, you save the entire workbook, all sheets.

I want to save a single sheet.

On that sheet I have a command button. The person updating that sheet will click on the button to "publish" it to our intranet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top