Micro Focus QTP (UFT) Forums

Full Version: Assign a variable to cell in DataTable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I assign avariable to a cell in DataTable. I'm really a newbie in QTP. Thanks!
You can use DataTable("Column",dtlocalsheet) = your Variable
And how can a variable be assigned to a specific cell, let's say "K3"?

Thx for replies!
You can directly assign a value to a cell.
you will need to set the current row first then set the value to a particular column.

use SetCurrentRow method to set your row as 3
then use above code to set your value in column K of your sheet.