Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
auto save with variable name with html extension
Hi All,
I have this coding to save after printing :- ------------------------------------------------- Private Sub CommandButton1_Click() Sheet1.Cells.PrintOut (1), (1), (2) ThisWorkbook.SaveCopyAs (Sheet2.Cells(1, 1)) Sheet2.Cells(1, 1).Delete ComboBox16.Text = Sheet2.Cells(1, 1) ComboBox16.Value = Sheet2.Cells(1, 1) ThisWorkbook.Save End Sub -------------------------------------------------- After the printing, it will save as a file without extension. I will only able to read the file if I rename the file with the Excel extenson (.xls) My question is how can I make it to automatically save as a html file after printing. As my coding for the file name to save is variable, so I have problem to set the extension. Can anyone advise me how can I save it to the extension I want. Thanks a million in advance... Cheers... Jason |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel changes file extension on embedded object upon save | Excel Discussion (Misc queries) | |||
Default Save Extension | Excel Discussion (Misc queries) | |||
add .jpg extension to list of variable part numbers | Excel Discussion (Misc queries) | |||
export from sqlserver in html format with .xls extension and enabling DisplayGridlines | Excel Discussion (Misc queries) | |||
Save As to HTML and auto-refresh | Charts and Charting in Excel |