File name

captnk

Registered User.
Local time
Today, 00:44
Joined
Dec 12, 2001
Messages
148
Apologies,but this is a repost from excel section.
Think I need more specialised VB help

So I have the following bit of code (recorded with a macro)
Cells.Select
With ActiveWorkbook.PublishObjects(1)
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With

When this code is run it always saves the file as that given manually.
(.filename...which is hidden somewhere)?
I want to be able to name it with the file name extracted as a strfile in an earlier part of the code,but I have tried all sorts of samples from help file,and from earlier posts.
So far all have failed.
Any ideas how I can get it to accept the "strfile" as the save name pls
 
I appear to have resolved the problem myself.
Tks
Captnk
 

Users who are viewing this thread

Back
Top Bottom