Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default CORRECTION NEEDED

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default CORRECTION NEEDED

Hi K,

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



---
Regards.
Norman


"K" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default CORRECTION NEEDED

On Jun 2, 1:59*pm, K wrote:
On 2 Jun, 18:45, "Norman Jones"
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" wrote in message


...


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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default CORRECTION NEEDED

On 2 Jun, 19:08, JW wrote:
On Jun 2, 1:59*pm, K wrote:





On 2 Jun, 18:45, "Norman Jones"
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" wrote in message


....


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- Hide quoted text -

- Show quoted text -


Thanks lot JW that what i needed
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CORRECTION NEEDED IN MACRO K[_2_] Excel Programming 0 April 17th 08 10:41 AM
Value correction P. Zicari Excel Discussion (Misc queries) 2 April 15th 08 07:28 PM
CORRECTION NEEDED K[_2_] Excel Programming 2 January 22nd 08 12:54 PM
correction needed K[_2_] Excel Programming 5 December 16th 07 08:32 PM
correction nowfal Excel Discussion (Misc queries) 4 March 24th 06 06:40 PM


All times are GMT +1. The time now is 09:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"