Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Excel Automation command pRange->Item

$
0
0

Hello,

I am building an excel automation and i have a problem when the user put information in a textbox to select columns.

I am getting the string from the textbox and adding it to this command :

pRange->Item[TBtext1][TBtext2]
The problem is with the second [] , its like the pogram has not enought time to get the data from TBtext2.

If i only use one textbox string to the frist[] and add a fixed value to the second one it works:

pRange->Item[TBtext1][1]

How can i fix that, so i can use the data from TBtext1 and TBtext2?

Thanks



Viewing all articles
Browse latest Browse all 15302

Trending Articles