Imacros VB script that makes direct calls to imacros, not working right, help appreciated

Discussion in 'Visual Basic 6' started by madblacker, Jun 2, 2010.

  1. madblacker

    madblacker Regular Member

    Nov 2, 2009
    Likes Received:
    I have been reviewing this sample: where you can send macro code directly with VB, which I find much more useful than having to call an outside iim script...

    I am trying to figure out how I can make the VBscript that I am using import a .csv file and then use a value from this (such as from "column 1, first row") as a variable within a macro call. I have tried combining some of the other scripts (the ones that mention how to import a csv file) and played around with this but I still can't get it to work, I kept getting an error in imacros saying something like the variable was undefined locally... if anyone can give a small example of how this might work, I would greatly appreciate it.

    Also, I am trying to accomplish something where rather than just looping through each row in the .csv, it could instead call a random row each time it loops.. any help on this is greatly appreciated.
    Last edited: Jun 2, 2010