Jump to content


Photo

I'd like to detect when the script copies a blank cell


  • Please log in to reply
2 replies to this topic

#1 iguru42

iguru42
  • Members
  • 56 posts

Posted 19 July 2012 - 06:12 PM

I use a lot of scripts that execute commands where the variables are grabbed from an excel sheet.

The one thing I've never been able to do is figure out how to know when I've copied a blank cell, which would mean I've reached the end of variables and would like to exit the loop.

I searched a bit but didn't find anything on point.

TIA

#2 Pulover

Pulover
  • Members
  • 1242 posts

Posted 19 July 2012 - 06:16 PM

It will probably contain just a new line, so you may check it comparing like this If Clipboard = `r`n.
Although using COM is a more reliable way to deal with excel.

#3 iguru42

iguru42
  • Members
  • 56 posts

Posted 19 July 2012 - 06:44 PM

/me sighs.......

oh em gee, that was so freaking easy. Dunno what my problem was with that. Thanks Pulover, that's exactly what a blank cell is `r`n.