Hello,
How do I use the GoTo so that I can Specify A line of Code to go to...
for example
Is this posible??![]()
Please Login or Register to view this content.
Hello,
How do I use the GoTo so that I can Specify A line of Code to go to...
for example
Is this posible??![]()
Please Login or Register to view this content.
Last edited by RBI; 10-30-2008 at 09:09 AM. Reason: mark as solved
Use the same code posted above, but then, where your reference is, you need to include the description. Example:
You can also do the same by using On Error GoTo imessedup![]()
Please Login or Register to view this content.
HTH
Jason
Ya but does this work If the GoTO refers to a line that is before it
ex
You see the macro is just to open a file, search for a value then exit if it finds it, if not it closes and goes to the next but it's not working yet... The first Goto is to go back to the start if the filename can not be found t ofind the next file on the list, The secod Goto is to close the current file and go back to the list if the value being searchd for cannot be found... another problem is that i don't know if, when the "find" function doens't find anything is that an error?? cause if it's not then the second Goto won't work....![]()
Please Login or Register to view this content.
Any Help on these issues is apprecieated
Last edited by RBI; 10-24-2008 at 03:46 PM.
I wasn't able to test it due to the amount of work that would be involved in replicating your situation, but try this code to see if it works:
Jason![]()
Please Login or Register to view this content.
Last edited by jasoncw; 10-24-2008 at 07:31 PM.
In the code in post #3
change one line
![]()
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
Sorry Wrong Spot
Last edited by RBI; 10-27-2008 at 10:12 AM. Reason: Wrong Post
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks