Skip to content

Commit 069c494

Browse files
2 parents 0578f21 + c5db6ed commit 069c494

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

docs/Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
1. [Writing macros in Python](tutorials/Addin04.md)
77
1. [Permanently installing the add-in](tutorials/Addin05.md)
88

9+
If you encounter any issues in getting the add-in set up consult the [troubleshooting guide](tutorials/AddinTrouble.md).
10+
911
**Learn how to manipulate Python objects in VBA**
1012

1113
1. [A very simple usage example](tutorials/Usage01.md)

docs/tutorials/Addin01.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To interact with Python, a workbook must first be setup to use ExcelPython. To d
2020

2121
* From the ExcelPython tab in the toolbar click 'Setup ExcelPython'.
2222

23-
Next write your user-defined function in Python. In the previous step ExcelPython will have created a file called `Book1.py` in the same folder as `Book1.xlsm` in which the Python functions to be used in the workbook can be defined.
23+
Next write your user-defined function in Python. In the previous step ExcelPython will have created a file called `Book1.py` in the same folder as `Book1.xlsm` in which the Python functions to be used in the workbook must be defined.
2424

2525
* Edit `Book1.py` to contain the following code:
2626

docs/tutorials/AddinTrouble.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
## Programmatic access to Visual Basic Project is not trusted
22

3+
![image](https://cloud.githubusercontent.com/assets/5197585/4011749/4c09f4ee-2a07-11e4-8882-c7f6c12b4096.png)
4+
35
This appears because your Excel trust settings do not allow an add-in to manipulate another workbook's VBA code, which the ExcelPython add-in needs to be able to do to perform its tasks.
46

57
To change this trust setting, select File > Options > Trust Center > Trust Center Settings > Macro Settings and ensure the checkbox labeled 'Trust access to the VBA project object model' is checked.
68

79
![image](https://cloud.githubusercontent.com/assets/5197585/3921677/77648a04-23c3-11e4-9af4-2a14ca47787e.png)
10+
11+
## Could not create Python process - the system cannot find the file specified
12+
13+
![image](https://cloud.githubusercontent.com/assets/5197585/4011849/6e2e882c-2a08-11e4-88e2-93abc620d4e2.png)
14+
15+
This is probably because you don't have Python installed on your machine. If you are sure you do, then it may not be on the system path, or if you have just installed it maybe Excel just needs to be restarted.
16+
17+
## Python process exited before it was possible to create the interface object
18+
19+
![image](https://cloud.githubusercontent.com/assets/5197585/4011823/2abd178e-2a08-11e4-941e-61d4a669eb7f.png)
20+
21+
This means that there was an error in running the ExcelPython server script (`xlpyserver.py`) and it can happen for many reasons.
22+
23+
The most likely cause is that you haven't installed the [Python for Windows extensions (PyWin32)](http://sourceforge.net/projects/pywin32/) library into your Python distribution. Failing this you should consult the specified log file, which will show you the output of the Python interpreter including any errors that might have been raised during the script's execution.

0 commit comments

Comments
 (0)