Gui data to Excel Sheet

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Crashm87
Posts: 48
Joined: 25 Jul 2016, 13:12

Gui data to Excel Sheet

08 Apr 2017, 08:54

Morning Community,

I have a script I have written to take information from Gui Edit boxes and push them to excel sheet to make labels. The script searches an old database to see if the label has been made before, if it has it pulls all the data to sheet from database. If it hasn't been made, it opens a Gui to input all the new information, on OK sends it to sheet.

Problem I'm having is, if I have to add another one manually like that, I get an error that the same variable can't be used for more than one control.
Here is broken down code that shows code related to errors.

Any help is appreciated.

Thanks
Wolfdagon
Posts: 37
Joined: 02 Oct 2014, 21:51

Re: Gui data to Excel Sheet

08 Apr 2017, 10:57

Like the error says, you can't use the same variable for more than one control in a GUI. Simply change this variable name to something like cname2. If you really need for it to be cname for the later part of the script, then at some point before that put cname := cname2

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee and 126 guests