Skip to main content

Search

Search

How To Call A Specific Cell From An Excel Database?

Comments

2 comments

  • Avatar
    Legacy Poster

    I'm not 100% sure this is what you're asking but maybe.

     

    [attachment=1512:Capture.JPG]

     

    If you're asking how you tell BarTender to look at record 3 *always*, no matter what record you're currently printing, I don't think that's a thing.

    0
  • Avatar
    Legacy Poster

    Yeah, that didn't work for what i want. Actually what i need right now is to create an Array and call all the values from a table to it. Like for example

     

    Supposing that i have an excel Table like  the one i put in the last post. I want to transform those two columns (number and name) in two arrays, so:

     

     

    Dim number(2)

       For each x in number

            If  x = Null Then

                Exit For

            Else

                x = Field(Sheet1$.number)

            End if

        next

     

    Dim name(2)

        For each x in name

            If  x = Null Then

                Exit For

            Else

                x = Field(Sheet1$.name)

            End if

        next

     

    I tried that, but doesn't work... I also tried " x = Field(Sheet1$.name).movenext" , but i'm not pretty sure what i'm doing, and doesn't work neither...

    0

Please sign in to leave a comment.