VBA to Browse File and Open File in Excel

Поділитися
Вставка
  • Опубліковано 6 лип 2019
  • This Example explains how to Browse a file, Capture the path of selected file in a cell or variable. How to use File Dialog Box to get the file path and open the selected file using simple VBA Code in Excel.

КОМЕНТАРІ • 46

  • @SuperHanme
    @SuperHanme 2 роки тому +2

    This is exactly what I was looking for. Thank you for the clear tutorial

  • @johnvodopija1743
    @johnvodopija1743 3 роки тому +4

    This is exactly what I was looking for. Thank you for the clear tutorial 👍😎🇦🇺

    • @ExcelDestination
      @ExcelDestination  3 роки тому

      thanks!

    • @acexzavier897
      @acexzavier897 3 роки тому

      dunno if anyone gives a shit but if you guys are stoned like me atm then you can stream pretty much all of the new movies on InstaFlixxer. Have been watching with my brother for the last few weeks :)

    • @jadenconrad8882
      @jadenconrad8882 3 роки тому

      @Ace Xzavier Yea, I've been using instaflixxer for months myself :D

  • @tharanya
    @tharanya 4 роки тому +1

    Very helpful info thanks a lot

  • @aliyasir4104
    @aliyasir4104 3 роки тому +1

    Thanks for sharing i have one question if we want to browse data from any of the location from the system for complier so how we can give the coding for that?

  • @veebee3969
    @veebee3969 4 роки тому +1

    Thank you for the video. If the file opened (using GetOpenFileName) has multiple sheets, how to make the user select a particular sheet with a mouse click?

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      you can use additional code to activate specific sheet

  • @nitawinidiantari4867
    @nitawinidiantari4867 4 роки тому +1

    I made vba coding to open file excel 2000 with path xls, but it doesnt running, could you help me to fix it ?

  • @anicetojoaocostacassama2826
    @anicetojoaocostacassama2826 4 роки тому

    Very useful code 😁
    Is there any way out we can close the opened file? thanks

  • @rostislavslavov2993
    @rostislavslavov2993 3 роки тому +1

    Nice one!
    Can you please show how I can add a pdf file in each row and open it in a viewer inside excel?

  • @mohammedameerahmed2250
    @mohammedameerahmed2250 2 роки тому +2

    Thank you so much. Really helped alot.

  • @aakashpanchal8686
    @aakashpanchal8686 11 місяців тому

    I want to browse and open the excel file in the same excel file from where I have clicked on browse , copy the data of the browsed excel file and paste it to my existing excel file. Is there a way I could do it?

  • @code4all870
    @code4all870 5 років тому

    Video is nice and useful. Just make video how send this file mail

  • @nitawinidiantari4867
    @nitawinidiantari4867 4 роки тому +1

    Sir may i ask you, how open a file with greatest size in one folder thanks

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      There is a VBA function named FILELEN. This function chek the file size in bytes. Syntax is : FileLen( file_path ). You can loop through files and then store file sizes in array and then decide about biggest size file. Try at your end. If you can not you can share your VBA requirement at exceldestination@gmail.com. I have a small team that works upon excel vba projects.

  • @davemir1435
    @davemir1435 4 роки тому

    Is it possible to select more than one file? For example to get a list of all files in a folder. Can we rename one or multiple files in a specific folder using this approach?
    Thank you for your videos. Way to go!

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      I have already uploaded one example for this task. you can check ua-cam.com/video/38MWjuIG-7U/v-deo.html

  • @premkumart3315
    @premkumart3315 3 роки тому +1

    Good one

  • @anicetojoaocostacassama2826
    @anicetojoaocostacassama2826 4 роки тому +1

    Very useful code 😁
    Is there any way out we can close the opened file using VBA. thanks

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      Yes! you can watch another tutorial for that at below given link :
      ua-cam.com/video/IT98PPe0WpQ/v-deo.html

  • @pratik9217
    @pratik9217 3 роки тому +1

    the pop-up doesn't come in front when calling this macro from vbs--why?,how to resolve it?

  • @aodieuhoaquatgioazuki
    @aodieuhoaquatgioazuki 4 роки тому +1

    hey, can you tell me how to make a chart after select file
    thank u so much :x

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      You need to write code for certain things like first select and open file then referencing range and the code for creating chart. It is very much doable.

    • @aodieuhoaquatgioazuki
      @aodieuhoaquatgioazuki 4 роки тому

      @@ExcelDestination I finished writing the reference code and opened the file. Can you teach me to write code to draw a chart from the newly opened file?

  • @anhnhatnguyet4628
    @anhnhatnguyet4628 4 роки тому +1

    Convert multi file excel, all sheet with cell formula to value, how work with vba ?

    • @ExcelDestination
      @ExcelDestination  4 роки тому

      you need to loop through sheets and then use pastespecial as value method using vba code. to loop through sheets, you can watch tutorial at :
      ua-cam.com/video/AlC8a7KyJq0/v-deo.html

  • @pandharinathjoshi6565
    @pandharinathjoshi6565 3 роки тому

    Nice video sir.
    If some body copy and paste file to another PC... it will work Path in that system
    Bcoz I want fix that path only one pc, if somebody copied file it could not work or open... pls sir help us

  • @fmathsfun7397
    @fmathsfun7397 3 роки тому +1

    Sir how it is automatically opening desktop only can we specify which drive it has to open

    • @ExcelDestination
      @ExcelDestination  3 роки тому

      a small modification would be required to do this task in the given example

  • @johnpaulbadajos633
    @johnpaulbadajos633 Рік тому

    will this open a pdf format file?

  • @Time_utilize
    @Time_utilize Рік тому

    Where to get the file for reading coding clearly...

  • @ramsaple9986
    @ramsaple9986 4 роки тому +1

    hello sir
    I want one select file button. to select multiple file at different cells

  • @mohitiagrawal9752
    @mohitiagrawal9752 2 роки тому

    how to add an image with a browser and fit in a fixed column

  • @AshikKhan-er4up
    @AshikKhan-er4up 5 років тому

    How to paste data in visible columns (when I have hidden some columns in excel) now I need to paste data in visible columns I need your help Dear sir resolve it. I'm waiting for answer.

    • @ExcelDestination
      @ExcelDestination  5 років тому

      Hello Ashik, I think it can not be done. You can copy only from visible cells in this situation.......by using Alt + ; key and then copy data....it will copy data only from visible cells.......there is no way to paste, if some rows are hidden or filtered......only way is sorting data by using logic.......and then pasting.

    • @AshikKhan-er4up
      @AshikKhan-er4up 5 років тому

      @@ExcelDestination there is no any way for pasting data in visible columns

  • @aliakbarmohammad2316
    @aliakbarmohammad2316 4 роки тому +1

    Sir, How To open PDF file in Excel Sheet

    • @ExcelDestination
      @ExcelDestination  4 роки тому +1

      let me help you
      you can create one function and then call that function using vba code. I am pasting here sample function and calling of function :
      Function Open_AnyFile(strPath As String)
      Set objShell = CreateObject("Shell.Application")
      objShell.Open(strPath)
      End Function
      Sub Test()
      Dim pdfPath as String
      pdfPath = "C:\example.pdf"
      Call Open_AnyFile(pdfPath)
      End Sub

    • @pandharinathjoshi6565
      @pandharinathjoshi6565 3 роки тому

      Sir pls make this video, can i paste in excel and open pdf where it is select

  • @TheNeighborhoodCat
    @TheNeighborhoodCat 3 роки тому

    this is clickbait