Skip to content

Commit b27e000

Browse files
Update README.md
1 parent 3757df5 commit b27e000

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,29 @@ Keep the location of where the file is saved as you will need it later.<br />
114114
**Step 4** - Select the ChatgptTextCompletion.bas file and click Open
115115
<br /><br />
116116

117-
### 4.3 Add your OpenAI APIKey into the ChatgptTextCompletion.bas file
117+
### 4.3 Add your OpenAI APIKey into Windows
118118

119-
**Step 1** - In the Project window (top left hand side) double click on the ChatgptTextCompletion Module.
119+
**Step 1** - Open the Start menu and start typeing "environment variables". When the best match appears click "Edit the system environment variables" result.
120+
121+
<img src=".github/assets/images/add-env-var-step-1.png" width=75% height=75%>
122+
<br />
123+
124+
**Step 2** - Click the "Environment variables" button under the "Advanced" tab.
125+
126+
<img src=".github/assets/images/add-env-var-step-2.png" width=50% height=50%>
120127
<br />
121128

122-
**Step 2** - Replace the highlighted XX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with your APIKEY.
129+
**Step 3** - Create a new user variable by clicking "New" under the "User Variables" section.
123130

124-
<img src=".github/assets/images/visual-basic-add-apikey-section.png" width=100% height=100%>
131+
<img src=".github/assets/images/add-env-var-step-3.png" width=50% height=50%>
125132
<br />
126-
Please ensure that you APIKEY is surrounded by double quotation marks such as <strong>"</strong>sk-1234....sErtV3<strong>"</strong>
133+
134+
**Step 4** - Type the variable name **OPENAI_API_KEY** in the first field and your OpenAI APIKEY in the variable value field. Then click OK.
135+
136+
<img src=".github/assets/images/add-env-var-step-4.png" width=50% height=50%>
137+
<br />
138+
139+
**Step 5** - **IMPORTANT** You must restart Windows to apply the new environment variable
127140
<br /><br />
128141

129142
### 4.4 Add your ChatGPT button into the Microsoft Word Ribbon

0 commit comments

Comments
 (0)