vb Questions about file save as!

Updated on technology 2024-05-27
15 answers
  1. Anonymous users2024-02-11

    Define a variable as the save path, and then in your open"c:\users\administrator\desktop\" for output as #2 'Preceded by the following **::

    Text document (*.)txt)|*txt|All files (*.)"

    Set the default filter.

    1Document Path = Dialog. filename

    Then: open the document path for output as

  2. Anonymous users2024-02-10

    1.When saving, I changed the name of the saved file, and there was no suffix. Estimated because = all file"The reason for it should be yourself + on the back sip.

    2.If you save it once, save it again, find that there is already this file, press "Cancel", and the result is still saved by the program.

    if dir( if msgbox(""& Exists"CHR(13) & Want to replace it? ",vbyesno + 48, "Save As") vbyes then 'Prompt whether to replace.

    kill 'Replace: kill first

    filecopy "" & 'Replace: Save later.

    msgbox "Replace save OK"

    elseexit sub

    end if change it here to esle exit sub

    else 'There is no file name of the same name, just save it.

    filecopy "" &

    msgbox "Save OK directly"

    end if

    3.Since it is possible to copy any type of file, the specified file type in commondialog1? I don't understand what you're talking about.

  3. Anonymous users2024-02-09

    Click on the form file, set the new name in the properties, and then click on Project-Properties, change it to your new project name, and then create a new folder to save the new project.

    Then click on each form file and module file, right-click to save to the folder you just created, and finally click on File-Project Save As to the folder you just created.

  4. Anonymous users2024-02-08

    If the name in parentheses is a Save Form module, change it if the name on the left is it"Name"property (in.)"attributes"pane).

  5. Anonymous users2024-02-07

    Click Save, because there is a new form, Save As will pop up, you can save with a custom name.

  6. Anonymous users2024-02-06

    Save: It is a direct save.

    Save As: To display a dialog box that selects the save path and file name, and returns the saved file name (including the path).

  7. Anonymous users2024-02-05

    Save: This is to save to the default directory.

    Save As: You can choose your own location.

    It's as simple as that.

  8. Anonymous users2024-02-04

    You don't have a systematic notepad, you don't understand this, "I obey you.""

  9. Anonymous users2024-02-03

    Directly add a common dialog control, CommonDialog, which supports opening and saving as functions. Click on the Part option in the Project menu, then select the MicroSFT Common Dialog, and then press OK. Draw a dialog box to the form, and then you can directly write **programming.

    For example: private sub command1 click()dim filename select as string"Please select the file you want to open"

    c:\" 'The default open path is open.

    mediafile|*.***;*.wmv" 'Filter' this is turned on, and if you want to save it, change it to good.

    filename select= 'filename.

    end sub

    If it's not right, you can continue to ask me·· Huh...

  10. Anonymous users2024-02-02

    To use controls. It must be found in the Enterprise program.

  11. Anonymous users2024-02-01

    Commondialog generic dialog control.

    It's the save dialog.

  12. Anonymous users2024-01-31

    Make a subfunction to delete the file with the name you want to save, (the On Error Resume next error error is not prompted before the **start).

    Execute the function and then save it so you don't be prompted to overwrite it;

  13. Anonymous users2024-01-30

    1.First of all, you need to know what VBE is, and VBE is actually a Microsoft Visual Basic window. VBA window.

    2.In the right-click menu of the worksheet tab, select "View**" in the pop-up menu to open the "View**" window.

    3.In the Tools menu, select VB under Macros.

    4.When the control is in the design state, double-click the control to open the VB.

  14. Anonymous users2024-01-29

    Define a variable, when the program opens, there is a default value (like word, the new document is called unnamed), when you click to save, if it is the default value, open it and call save as, open a new window to select the file name, and assign the file name to the variable after saving, and judge whether the variable has been changed or saved when you save it later, and save it directly if there is.

  15. Anonymous users2024-01-28

    This should be a matter of patterning.

    There are usually two ways for a window, that is, whether to model the window, that is, whether to close (hide) the original window when a new window is executed.

    Like the default dialog is a non-patterned window;

    The default File Management window is a patterned window.

Related questions
21 answers2024-05-27

There is a solution.

You won't like it though. >>>More

15 answers2024-05-27

In this case, it is generally necessary to prevent copying. One is to disable the right click, the solution is to select the "Internet Options" command in the "Tools" menu of the browser, select "Security" in the open dialog box, drag the "Security Level" slider from intermediate to advanced with the mouse, and then select the "Apply" button and then select the "OK" button. >>>More

9 answers2024-05-27

Use format().

In the e-text windows is to display English.。 >>>More

3 answers2024-05-27

It is caused by insufficient permissions for the DCOM component of Excel, so follow the original steps to set it as follows: >>>More

7 answers2024-05-27

This cannot be deleted.

I don't know why, in win, if it is not installed properly, the folder will appear. >>>More