Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() is there a possibillity that when i push the save button in my form that i only save the sheet and not the form. see below code: -Private Sub cmdOpslaan_Click() With ActiveWorkbook.Sheets("Gegevensblad") 'First part of filename... a = Range("A4").Value & " - " & Range("B4").Value 'Filename extension... c = ".xls" s_filename = a + c Dim fname As Variant fname = Application.GetSaveAsFilename(InitialFileName:=s_f ilename) If fname = False Then Debug.Print "user clicked cancel" 'do nothing Else Debug.Print "user chose " & fname ActiveWorkbook.SaveAs Filename:=fname End If End With End Sub- -- eyesonly1965 ------------------------------------------------------------------------ eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199 View this thread: http://www.excelforum.com/showthread...hreadid=541782 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() If your form is in the same workbook as the sheet you are saving, the form is saved. -- bgeier ------------------------------------------------------------------------ bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822 View this thread: http://www.excelforum.com/showthread...hreadid=541782 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
save as issue | Excel Discussion (Misc queries) | |||
File Save/Save As Issue | Setting up and Configuration of Excel | |||
UserForm Save Issue | Excel Worksheet Functions | |||
Excel Save Issue | Excel Programming | |||
Save As issue | Excel Programming |