Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need some help with exporting from FM and maintaining records in Excel

Featured Replies

Hello all,

I am having a bit of trouble figuring out a way to obtain my goal.  My goal is to use Filemaker as a database for contacts, and then, upon the pressing of a button, exporting that contact info into an already existing Excel file, in which it would either add a new entry into the database, or modify an existing one based on the name.  I am essentially using both Filemaker and Excel as the same database, but Filemaker modifies Excel, and not the other way around.  

 

My attempts from my limited Filemaker usage have been to Export the filemaker document as an excel workbook.  So therefore, it would just re-save the database, and any changes would be changed because everything was.  HOWEVER, that has proven to be ineffective, as Filemaker is not letting me export the same thing twice.  It needs a new name.

 

My next attempt was to export the Filemaker database as a .csv, and to have the excel file automatically update upon opening.  This works, except for there are no headers, such as the name of my fields.  I tried the Save as Excel file option, and it saves every field, out of order.  I have extra fields in there that I don't want.

 

Is there some way to combine the effects of Save as Excel file, with the specifications of what you want to export using the Export command?

 

Thanks

There is no native way for Filemaker to update an existing Excel spreadsheet. There might be a plugin that provides such functionality (I don't really know).

If you can script this from Excel, so much better. Filemaker can provide field names with its export, if you export in one of these formats: merge, XML, dbf and, of course, Excel (note the difference between exporting as Excel and saving as Excel).

Edited by comment

  • Author

How could I export it over and over, if it won't let me replace the filenames though?  I have no problem pulling from excel vs. pushing from Filemaker.  The main problem I have is that when I click the button I made, it executes the Export script, and I get an error saying that the file name already exists, or the hard drive is locked

Do you have the option "automatically open" toggled on for the export?

The export will just overwrite the file if it is there, but not if it is locked by some other process.

If you are proficient with OS-level scripting then you can write VBscript or PowerShell code (your profile says Windows) that can take the FM exported data and update the Excel sheet.  No plugin required.

  • Author

Hmm good point about it being locked.  As of now I export as .csv, made my own column headers, and import a row below them. 

 

Thanks for the help

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.