Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...An excellent site which has quite possibly prevented me from having a mental/nervous breakdown..."

Geography

Where in the world do Tek-Tips members come from?

Setting FieldElement twice

KM8888 (Programmer)
13 Jun 12 15:02
Hi all, this might be a very newbie question but I appreciate any insight.

Basically I have a spot here where I am setting a spot by text

set FieldElement = autECLSession.autECLPS.autECLFieldList.FindFieldByText (Array(0))

autECLSession.autECLPS.SetCursorPos FieldElement.startrow, FieldElement.startcol

This works fine and I am able to do what I intend with this but later down the code I attempt to set it again, I have even tried a new variable with Fieldelement1 with no luck.

set FieldElement1 = autECLSession.autECLPS.autECLFieldList.FindFieldByText (Array(1))

autECLSession.autECLPS.SetCursorPos FieldElement1.startrow, FieldElement1.startcol


The text exists and everything but everytime I get the following error "Object variable not set"

Is there something I can do to make this work? Sorry for the newb question. Again any insight is always appreciated!
guitarzan (Programmer)
14 Jun 12 15:14
Which line gets the error?

You would have to show more code, otherwise it's guesswork. maybe autECLSession is out of scope, or you have a "Set autECLSession = Nothing" somewhere?

KM8888 (Programmer)
18 Jun 12 12:15
Hey, it seems to be working now, like I said probably something I should have known to do anyway, before the second occurrence I needed

this:

autECLSession.autECLPS.autECLFieldList.Refresh

Thanks!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close