M
Mr. Zancky
Hi,
I wrote the code to import text files (composed by 2 columns: x and y)
in excel sheet without using the Import Data function. For every file
imported I added a command button (locked with relative columns) adding
this line code:
*ActiveSheet.OLEObjects.Add "Forms.CommandButton.1", Left:=0, Top:=0,
Width:=109.5, Height:=24 *
*
In this way I created as many command button as set of x-y data.
Furthermore I created a global variable that increase by 1 every time I
imported a text file.
I have to question that I cannot solve:
1. how can I control every command button created? There's an index
that mark everyone?
2. the most important question: when the * line is added the global
variable doesn't increase, whereas when the line is not present all
works fine. I don't understand why!
Can anyone halp me?
Thank you in advance
I wrote the code to import text files (composed by 2 columns: x and y)
in excel sheet without using the Import Data function. For every file
imported I added a command button (locked with relative columns) adding
this line code:
*ActiveSheet.OLEObjects.Add "Forms.CommandButton.1", Left:=0, Top:=0,
Width:=109.5, Height:=24 *
*
In this way I created as many command button as set of x-y data.
Furthermore I created a global variable that increase by 1 every time I
imported a text file.
I have to question that I cannot solve:
1. how can I control every command button created? There's an index
that mark everyone?
2. the most important question: when the * line is added the global
variable doesn't increase, whereas when the line is not present all
works fine. I don't understand why!
Can anyone halp me?
Thank you in advance