VBA Save As File to Specific Location - Workbook Save as VBA Code Examples

Поделиться
HTML-код
  • Опубликовано: 12 фев 2021
  • This Excel VBA Save As Tutorial explains real example of VBA Code to save a file to specific location or save a file in a specific folder.
    You can also learn how to use save as dialog box to save a workbook using vba code.

Комментарии • 42

  • @balance1772
    @balance1772 Месяц назад +1

    Thanks a lot Dada

  • @manishagrawal417
    @manishagrawal417 3 года назад +8

    How to save a file on a folder in Sharepoint?

  • @krishnananda9466
    @krishnananda9466 Год назад +1

    Fantastic code
    Thank you very much

  • @janitziolazcano2226
    @janitziolazcano2226 2 года назад +1

    thank you so much, great video perfectly explained

  • @TrianandaTjan
    @TrianandaTjan 3 года назад +2

    How if I only want to save specific range on that worksheet?

  • @raymondryanmeneses3001
    @raymondryanmeneses3001 Год назад

    Thank you. Please do more code samples

  • @m.n.953
    @m.n.953 2 года назад

    hi
    thaks for the excellent expelation. i have a question pleas: i made a form in word with some fields to fill by the students . the fields are in vba type " plain text content control", and i added to the form a command control to save aoutomatically the document as the content of the sudent name field .
    i wrote exactly the code you give in this vedio :
    ActiveDocument.SaveAs2 FileName:="C:\Users\Nashat\Desktop\my new docs\abc"
    but insted the "abc" name i need to refference the file name to be as wreten in the field sudent name /// how can i do this pleas ? waiting for your answer and thank you again.
    best regards nashat

  • @fajarindra4002
    @fajarindra4002 2 года назад

    how to export as video file. from any row on excel? thk

  • @ornpiseth7846
    @ornpiseth7846 3 года назад +1

    what if we press the button 2 times, it's been saved once already, one more pressing , the file name will be duplicate, how to prevent this?

    • @ExcelDestination
      @ExcelDestination  3 года назад

      you need to write additional code to prevent this.

  • @m.n.953
    @m.n.953 2 года назад

    another question pleas /// how can i avoid that the command botton for be printed with the document ? how can i make it unprinted and only show it in the screen only?

    • @tonio909
      @tonio909 2 года назад

      Click design mode, then right click properties then uncheck print

  • @akshaythakur2395
    @akshaythakur2395 3 года назад +2

    how to add range for export to xlsx file format???

  • @matthewanacleto7885
    @matthewanacleto7885 Год назад

    is this Mac OS compatible?

  • @mukeshjani2778
    @mukeshjani2778 3 года назад +1

    Sir my excel VBA file take more time to open. There are only 50 records. Pl guide me.

    • @ExcelDestination
      @ExcelDestination  3 года назад

      sometimes computer\laptop performance also impact in this. May be you can remove some files, that are saved on your desktop and try cleaning your system. Then try.

  • @Preeti.sardana
    @Preeti.sardana 2 года назад +1

    Thanks

  • @kannanmassey5783
    @kannanmassey5783 2 года назад +1

    Kindly post an example to prompt for a range to copy and prompt for destination where to copy the range.
    Thanks.

  • @ganiurrahman8515
    @ganiurrahman8515 Год назад

    How to save a userform as pdf

  • @rickswineberg
    @rickswineberg 3 года назад +8

    Good video, can i make a suggestion, the file name should be dynamic . Set it to gather the name dynamically from the worksheet. ie, file=range("a1") this is concatenated into the part where you have "abc".

  • @suyashprakash7657
    @suyashprakash7657 Год назад

    Sir I have 1 doubt.
    I have created a time tracker for my team.
    With your save as option - I was able to save my macro excel to the path I want.
    But when I click on Command button again, it is replacing the previous excel which is saved.
    I need different excel file to be saved.

    • @husseinkavak
      @husseinkavak Год назад

      Yes, that's what I've been looking for for days

    • @suyashprakash7657
      @suyashprakash7657 Год назад +1

      Looks like the admin does not reply or see the comments.

    • @husseinkavak
      @husseinkavak Год назад +1

      @@suyashprakash7657 yeah, ı just typed in vade admin gets Albert and sees the comments

  • @kidslearning2987
    @kidslearning2987 2 года назад +1

    Good

  • @jahnvijairaj8414
    @jahnvijairaj8414 2 года назад +1

    How to save file as pdf ?

  • @ryannolaan
    @ryannolaan 2 года назад +1

    Could you save the file name with the data in a specific cell
    For example 1
    Cell A3 had “12345”
    File name saved as 12345
    Change data in A3 to be “6789”
    File name saved as 6789
    What would be the code needed

  • @user-fh7gn8ge8m
    @user-fh7gn8ge8m 2 года назад +1

    خه

  • @goyaltraders3265
    @goyaltraders3265 3 года назад +1

    Sir demo file provide kariya every description ma