Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default specific name for saving.

greetings, i'm using active x to create an excel object and it works fine. sweet. the next portion is to specify name for it. i would like to have a default name in the save dialog box when the user click on the save button. besides having is like "book1.xls" i would like it to call "myspecific name.xls". can someone show me the codes? attach below are my codes for it.

*** begin ***
<SCRIPT language="vbscript"

Sub btnClientExport_onclick

Dim sHTML

sHTML = document.all.item("dgDS2Excel").outerhtml

Dim oXL, oBook

Set oXL = CreateObject("Excel.Application")

Set oBook = oXL.Workbooks.Add

oBook.HTMLProject.HTMLProjectItems("Sheet1").Text = sHTML

'oXL.SaveAs "C:\something"

oBook.HTMLProject.RefreshDocument

oXL.Visible = true

oXL.UserControl = true


End Sub

</SCRIPT

*** end ***


thanks in advance for the reply.


asha...
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
saving after entry in specific cells MIke Excel Discussion (Misc queries) 6 April 9th 08 03:38 PM
Saving a file using a specific name in a cell SU Excel Worksheet Functions 4 February 25th 05 12:30 AM
Saving file to a specific folder richkim2000 Excel Discussion (Misc queries) 1 January 25th 05 11:11 PM
Disabling Saveas and saving file with a specific name only Hari[_3_] Excel Programming 3 June 14th 04 08:34 PM
Saving one specific worksheet in a workbook budenba Excel Programming 2 October 31st 03 12:31 PM


All times are GMT +1. The time now is 08:13 PM.

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"