PC Review


Reply
Thread Tools Rate Thread

CORRECTION NEEDED

 
 
K
Guest
Posts: n/a
 
      2nd Jun 2008
Hi, How can i change in macro where it say "Sheet1" into
ActiveSheet. I tried many ways but i am getting errors. Please can
anybody help



Sub SAV()


Range("A2:F23").Select
With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"C:\Documents and Settings\KAMRAN\My Documents\" &
Range("K1").Value & " - " & Range("H2").Value & ".htm", _
"Sheet1", "$A$2:$F$23", xlHtmlStatic, , "")
.Publish (True)
.AutoRepublish = False
End With
Range("A2").Select
End Sub


 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      2nd Jun 2008
Hi K,

I do not think that you need to open a
new thread for a question posted 15
minutes ago.



---
Regards.
Norman


"K" <(E-Mail Removed)> wrote in message
news:59ccd30d-694b-48cb-a2d2-(E-Mail Removed)...
> Hi, How can i change in macro where it say "Sheet1" into
> ActiveSheet. I tried many ways but i am getting errors. Please can
> anybody help
>
>
>
> Sub SAV()
>
>
> Range("A2:F23").Select
> With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
> "C:\Documents and Settings\KAMRAN\My Documents\" &
> Range("K1").Value & " - " & Range("H2").Value & ".htm", _
> "Sheet1", "$A$2:$F$23", xlHtmlStatic, , "")
> .Publish (True)
> .AutoRepublish = False
> End With
> Range("A2").Select
> End Sub
>
>


 
Reply With Quote
 
K
Guest
Posts: n/a
 
      2nd Jun 2008
On 2 Jun, 18:45, "Norman Jones" <normanjo...@wherforartthou.com>
wrote:
> Hi K,
>
> I do not think that you need to open a
> new thread for a question posted 15
> minutes ago.
>
> ---
> Regards.
> Norman
>
> "K" <kamranr1...@yahoo.co.uk> wrote in message
>
> news:59ccd30d-694b-48cb-a2d2-(E-Mail Removed)...
>
>
>
> > Hi, *How can i change in macro where it say "Sheet1" into
> > ActiveSheet. *I tried many ways but i am getting errors. *Please can
> > anybody help

>
> > Sub SAV()

>
> > * *Range("A2:F23").Select
> > * *With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
> > * * * *"C:\Documents and Settings\KAMRAN\My Documents\" &
> > Range("K1").Value & " - " & Range("H2").Value & ".htm", _
> > * * * * "Sheet1", "$A$2:$F$23", xlHtmlStatic, , "")
> > * * * *.Publish (True)
> > * * * *.AutoRepublish = False
> > * *End With
> > * *Range("A2").Select
> > End Sub- Hide quoted text -

>
> - Show quoted text -


Hi Norman, Yes i know my friend and i am sorry for this as i thought
Jim might be offline and i am still at work and i need to finish my
project for which i need this macro. And my last thread was not 15
minutes ago it was actually 2 hours ago. if you have any suggestions
please let me know
 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      2nd Jun 2008
On Jun 2, 1:59*pm, K <kamranr1...@yahoo.co.uk> wrote:
> On 2 Jun, 18:45, "Norman Jones" <normanjo...@wherforartthou.com>
> wrote:
>
>
>
>
>
> > Hi K,

>
> > I do not think that you need to open a
> > new thread for a question posted 15
> > minutes ago.

>
> > ---
> > Regards.
> > Norman

>
> > "K" <kamranr1...@yahoo.co.uk> wrote in message

>
> >news:59ccd30d-694b-48cb-a2d2-(E-Mail Removed)...

>
> > > Hi, *How can i change in macro where it say "Sheet1" into
> > > ActiveSheet. *I tried many ways but i am getting errors. *Please can
> > > anybody help

>
> > > Sub SAV()

>
> > > * *Range("A2:F23").Select
> > > * *With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
> > > * * * *"C:\Documents and Settings\KAMRAN\My Documents\" &
> > > Range("K1").Value & " - " & Range("H2").Value & ".htm", _
> > > * * * * "Sheet1", "$A$2:$F$23", xlHtmlStatic, , "")
> > > * * * *.Publish (True)
> > > * * * *.AutoRepublish = False
> > > * *End With
> > > * *Range("A2").Select
> > > End Sub- Hide quoted text -

>
> > - Show quoted text -

>
> Hi Norman, *Yes i know my friend and i am sorry for this as i thought
> Jim might be offline and i am still at work and i need to finish my
> project for which i need this macro. *And my last thread was not 15
> minutes ago it was actually 2 hours ago. *if you have any suggestions
> please let me know- Hide quoted text -
>
> - Show quoted text -


Change "Sheet1" to ActiveSheet.Name
 
Reply With Quote
 
K
Guest
Posts: n/a
 
      2nd Jun 2008
On 2 Jun, 19:08, JW <JWRIGH...@triad.rr.com> wrote:
> On Jun 2, 1:59*pm, K <kamranr1...@yahoo.co.uk> wrote:
>
>
>
>
>
> > On 2 Jun, 18:45, "Norman Jones" <normanjo...@wherforartthou.com>
> > wrote:

>
> > > Hi K,

>
> > > I do not think that you need to open a
> > > new thread for a question posted 15
> > > minutes ago.

>
> > > ---
> > > Regards.
> > > Norman

>
> > > "K" <kamranr1...@yahoo.co.uk> wrote in message

>
> > >news:59ccd30d-694b-48cb-a2d2-(E-Mail Removed)....

>
> > > > Hi, *How can i change in macro where it say "Sheet1" into
> > > > ActiveSheet. *I tried many ways but i am getting errors. *Pleasecan
> > > > anybody help

>
> > > > Sub SAV()

>
> > > > * *Range("A2:F23").Select
> > > > * *With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
> > > > * * * *"C:\Documents and Settings\KAMRAN\My Documents\" &
> > > > Range("K1").Value & " - " & Range("H2").Value & ".htm", _
> > > > * * * * "Sheet1", "$A$2:$F$23", xlHtmlStatic, , "")
> > > > * * * *.Publish (True)
> > > > * * * *.AutoRepublish = False
> > > > * *End With
> > > > * *Range("A2").Select
> > > > End Sub- Hide quoted text -

>
> > > - Show quoted text -

>
> > Hi Norman, *Yes i know my friend and i am sorry for this as i thought
> > Jim might be offline and i am still at work and i need to finish my
> > project for which i need this macro. *And my last thread was not 15
> > minutes ago it was actually 2 hours ago. *if you have any suggestions
> > please let me know- Hide quoted text -

>
> > - Show quoted text -

>
> Change "Sheet1" to ActiveSheet.Name- Hide quoted text -
>
> - Show quoted text -


Thanks lot JW that what i needed
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Correction Needed in Macro K Microsoft Excel Programming 1 21st Nov 2008 06:07 PM
CORRECTION NEEDED IN MACRO K Microsoft Excel Programming 0 17th Apr 2008 10:41 AM
CORRECTION NEEDED K Microsoft Excel Programming 2 22nd Jan 2008 12:54 PM
correction needed K Microsoft Excel Programming 5 16th Dec 2007 08:32 PM
syntax correction needed =?Utf-8?B?RGVzZXJ0IEJlYXI=?= Microsoft Access Form Coding 2 5th Feb 2004 12:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.