Questions tagged [filedialog]

Refers to both OpenFileDialog and SaveFileDialog in .NET WinForms.

This tag represents both the OpenFileDialog class and SafeFileDialog class from .NET. More information about them on MSDN here and here respectively.

358 questions
0
votes
1 answer

Send Email with Attachments located in same folder as the workbook

I generate an Outlook HTML formatted email to send to the email address designated by cell. I attach multiple files located in the same folder as the workbook with the FileDialog box. I would like the initial folder that comes up to be the location…
DVez
  • 11
  • 3
0
votes
0 answers

select a file from pop up window

I change the column name inside a cell. I do with help of Split function. But many of you have realized when there is already a formula inside cell, and it is referencing another excel file the pop up window appears. What I try to do, not to select…
xlmaster
  • 659
  • 7
  • 23
0
votes
1 answer

How to store data from filedialog.askopenfilename?

I cant figure out how to store value from filedialog.askopenfilename. Now i saved the value to local variable but i want to work with this value later in other functions. I cant return the this value because i call function when i am creating the…
GGGGGG
  • 5
  • 4
0
votes
1 answer

save a file generated by a php script in to a directory by save dialog form

I have a php script that generate a pdf file. So I have an html page with jquery javascript that do an ajax call at this php script and retrieve the pdf file content. I would that this file will be saved in a location choosed by a save file…
michele
  • 26,348
  • 30
  • 111
  • 168
0
votes
1 answer

"File Name Not Valid" Python Tkinter

I'm making a simple text editor and whenever I try to save a file it always gives me this error. I'm saving it as a normal text file and I cant find the reason why this is happening. I've tried saving it to a different location, made some debugging…
Superior125
  • 55
  • 3
  • 9
0
votes
1 answer

FileDialog Objects messing up with Word Object initiation Excel VBA

The code below is supposed to run through a list of Word documents and based on a file containing keywords find the paragraphs containing any of those words, then subsequently copy the corresponding paragraphs over to a destination Word file. The…
Chris
  • 11
  • 2
0
votes
1 answer

Get the file path in global variable from browse button with tkinter

I'm using tkinter. And I am trying to get a file path from a button and use it as an input for an other function. I defined filepathforinfo as a global variable, but I am not getting the expected result. I tried to follow the solution here. Here…
Anass
  • 396
  • 2
  • 10
0
votes
1 answer

Python opens a second window. Why?

I have a piece of code that gives me a bit of trouble. When I run it, I expect it to run the filedialog.askopenfilename only. However it also opens a small Tk window on the top-left corner of the screen. I am not sure why since there is nothing in…
Robin
  • 339
  • 1
  • 9
0
votes
2 answers

Selecting Multiple files in FileChooser

How to select multiple files present in different directories using FileDialog? I need to create a UI where I need to add lots of files from different directories. Also, I need to create a checkbox to indicate which files are selected for further…
freepublicview
  • 716
  • 2
  • 12
  • 25
0
votes
0 answers

Filedialog creating blank lines when opening file explorer

I noticed using filedialog.askdirectory() creates two blank lines when it opens file explorer (see picture below). I've been looking into this for weeks and I can't figure out why this is happening. Is there a way to prevent these blank lines from…
Andy Garcia
  • 79
  • 1
  • 10
0
votes
1 answer

Java, after using FileDialog, compilation does not end

I have simple java code to select the file and return array. When I use dedicated method (whole code below), my compilation (in IntelliJ) does not end -> it gets to the last lane of public static void main(String[] arg), it executes last lane…
Hronic
  • 155
  • 1
  • 1
  • 7
0
votes
1 answer

Application.FileDialog.Show does not work when called 2 times sequentially in MS Excel 2013 32Bits

In Excel2013 (32Bits) two FD.Show are called but one of them does not work. the file selection window does not show and proceed next statement directly. how to resolve this? my example code) Set FD =…
0
votes
1 answer

Attempting to prompt directory selection menu

So, in the code below, I'm attempting to ensure that when I press a button that says "Select File", a window pops up that lets you choose a folder/file to save some information in that will be stored into the program later. The code is below: def…
0
votes
1 answer

Select Folder and Filename to Save a new file for 32-bit and 64-bit MS-Access-2016

I am trying to get a full path and filename using the file dialog from MS Access VBA. In my MS-Access project I want to be able to save data into a user selectable folder and filename. To select the folder and filename MS-Access provides the…
PeterF
  • 3
  • 1
0
votes
1 answer

Is there any 'AND' logic for C# FileDialog.Filter Property?

Based on documentation: https://learn.microsoft.com/en-us/dotnet/api/microsoft.win32.filedialog.filter?view=net-5.0#examples I can see filtering with 'OR' logic is possible: Filter by "Word Documents" OR "Excel Worksheets" OR "PowerPoint…