+ Reply to Thread
Results 1 to 10 of 10

two very simple questions

Hybrid View

  1. #1
    filo666
    Guest

    two very simple questions

    1. How to get the row number if I'm in Target
    2. How to tell Vb if is error then goto next step in the macro
    TIA

  2. #2
    Registered User
    Join Date
    08-18-2004
    Posts
    16
    1) Target.Row
    2) On Error Resume Next

  3. #3
    googlesury
    Guest

    Re: two very simple questions


    Brassman wrote:
    > 1) Target.Row
    > 2) On Error Resume Next
    >
    >
    > --
    > Brassman
    > ------------------------------------------------------------------------
    > Brassman's Profile: http://www.excelforum.com/member.php...o&userid=13290
    > View this thread: http://www.excelforum.com/showthread...hreadid=496069


    I was trying to achieve the result in Item 2 above with the Solver
    module in VBA. However, I am not able to stop the Solver from
    displaying the Error handling Dialog box "Show trial solution" . I
    tried Placing the command "On Error Resume Next" at different places.
    Any suggestions?
    thanks in advance
    googlesury


  4. #4
    Tom Ogilvy
    Guest

    Re: two very simple questions

    Read through this and see if it answers your question:

    http://support.microsoft.com/default...b;en-us;843304
    How to create Visual Basic macros by using Excel Solver in Excel 97

    --
    Regards,
    Tom Ogilvy


    "googlesury" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Brassman wrote:
    > > 1) Target.Row
    > > 2) On Error Resume Next
    > >
    > >
    > > --
    > > Brassman
    > > ------------------------------------------------------------------------
    > > Brassman's Profile:

    http://www.excelforum.com/member.php...o&userid=13290
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=496069
    >
    > I was trying to achieve the result in Item 2 above with the Solver
    > module in VBA. However, I am not able to stop the Solver from
    > displaying the Error handling Dialog box "Show trial solution" . I
    > tried Placing the command "On Error Resume Next" at different places.
    > Any suggestions?
    > thanks in advance
    > googlesury
    >




  5. #5
    Doug Glancy
    Guest

    Re: two very simple questions

    filo666,

    1) Target.Row will return the first row of target
    2)
    On Error Resume Next
    'code to skip
    On Error Goto 0

    hth,

    Doug


    "filo666" <[email protected]> wrote in message
    news:[email protected]...
    > 1. How to get the row number if I'm in Target
    > 2. How to tell Vb if is error then goto next step in the macro
    > TIA




  6. #6
    Norman Jones
    Guest

    Re: two very simple questions

    Hi Filo666,

    > 1. How to get the row number if I'm in Target


    MsgBox Target.Row

    > 2. How to tell Vb if is error then goto next step in the macro


    On Error Resume Next

    'Youe contentious code line

    On Error GoTo 0 ' Restore default error handling

    ---
    Regards,
    Norman


    "filo666" <[email protected]> wrote in message
    news:[email protected]...
    > 1. How to get the row number if I'm in Target
    > 2. How to tell Vb if is error then goto next step in the macro
    > TIA




  7. #7
    L. Howard Kittle
    Guest

    Re: two very simple questions

    Hi Flo,

    Dim i As Integer
    i = Target.Row

    On Error Resume Next

    HTH
    Regards,
    Howard


    "filo666" <[email protected]> wrote in message
    news:[email protected]...
    > 1. How to get the row number if I'm in Target
    > 2. How to tell Vb if is error then goto next step in the macro
    > TIA




  8. #8
    filo666
    Guest

    RE: two very simple questions

    I know how to accomplish number 1: Range(target.address).Row
    please just answer number 2.
    "filo666" wrote:

    > 1. How to get the row number if I'm in Target
    > 2. How to tell Vb if is error then goto next step in the macro and also if is error goto Next (of a loop)
    > TIA


  9. #9
    Ron Rosenfeld
    Guest

    Re: two very simple questions

    On Mon, 26 Dec 2005 13:18:01 -0800, "filo666"
    <[email protected]> wrote:


    I will point you to the relevant topics in HELP, so you can also learn how to
    find answers for other questions:

    >1. How to get the row number if I'm in Target


    Check HELP for the Row property.

    >2. How to tell Vb if is error then goto next step in the macro
    >TIA


    Look at HELP for the RESUME statement.
    --ron

  10. #10
    filo666
    Guest

    Re: two very simple questions

    thanks you all

    "Ron Rosenfeld" wrote:

    > On Mon, 26 Dec 2005 13:18:01 -0800, "filo666"
    > <[email protected]> wrote:
    >
    >
    > I will point you to the relevant topics in HELP, so you can also learn how to
    > find answers for other questions:
    >
    > >1. How to get the row number if I'm in Target

    >
    > Check HELP for the Row property.
    >
    > >2. How to tell Vb if is error then goto next step in the macro
    > >TIA

    >
    > Look at HELP for the RESUME statement.
    > --ron
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1