Skip to main content
Question

When I try to set a value in excel following error occurs "Unable to set the cell value because of an invalid value or incorrect cell address."

  • December 22, 2022
  • 4 replies
  • 901 views

Forum|alt.badge.img

Unable to set the cell value because of an invalid value or incorrect cell address.

4 replies

Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • December 22, 2022

Hi @Litsy Maria Thomas,

 

I hope you are trying to enter data to the Excel through Loop (For each row in excel). You can use a variable to store the Row number during each iteration and during the Set Cell action, while specifying the Cell address, specify like the Alphabet name of the Column and the Row variable.

For e.g. A$Rownumber$ (A is the Column name and Rownumber is the variable used to save current row number)

If you have already followed this, could you please share the piece of code through which you are trying to mimic this action to give a better feedback?


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2696 replies
  • December 22, 2022

Hi @Litsy Maria Thomas 

Can you keep a message box just above the set cell command and check whether you are getting the right Cell address  within the loop.


Forum|alt.badge.img+4
  • Cadet | Tier 2
  • 9 replies
  • December 22, 2022

Hi 

 

Kindly check If you use loop Counter value to set the specific cell then you have to convert to string. Please refer below screenshot.

 

 


Forum|alt.badge.img+2
  • Cadet | Tier 2
  • 6 replies
  • July 21, 2023

i have simillar issue, but i able to set cell but the value doesn’t change.

 

in this case i want to change date format from [dd/mm/yyyy] to [dd-MMM-yy] in Excel.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings