Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. Download the script modWriteDBF.bas
  2. In Excel, open the Visual Basic Editor (Tools -> Macro -> Visual Basic Editor)
  3. In the right column, right click on "VBAproject (PERSONAL.XSL)" (Read this if there is no PERSONAL.XLS )
  4. Select "Import File", and select the downloaded script
  5. Select menu "Tools" -> "References"
  6. Make sure that the newest "Microsoft ActiveX Data Objects Library" is selected (probably 2.7 or 2.8)
  7. Go back to Excel, right-click on an empty space on the toolbar, select "customize"
  8. In the tab "Commands" select "Macro's" in the left display
  9. In the right display, select "Custom button". Drag this button to a location in the toolbar
  10. Right-click on the button, select "Assign macro"
  11. Select "PERSONAL.XLS!SaveAsDBF"
  12. It is also possible to change the button image and text here
  13. Close the customize screen

...

  • Sometimes the content of cells with many characters are not correctly written in the dbf. It is not known why this happens. Solution: try again (maybe multiple times).
  • Sometimes during the running of the script the Visual Basic Editor pops up and the script stops running. No problem, just press F5 and the code continues.
  • In case of very large tables, you can get the error "field will not fit in record". The total number of characters or bytes in the whole table seems to be the problem. It is not solved yet.