+ Reply to Thread
Results 1 to 16 of 16

Excel Com Addin

Hybrid View

Guest Excel Com Addin 06-09-2005, 05:05 PM
Guest Re: Excel Com Addin 06-09-2005, 05:05 PM
Guest Re: Excel Com Addin 06-09-2005, 06:05 PM
Guest Re: Excel Com Addin 06-09-2005, 06:05 PM
Guest Re: Excel Com Addin 06-09-2005, 06:05 PM
Guest Re: Excel Com Addin 06-09-2005, 07:05 PM
Guest Re: Excel Com Addin 06-09-2005, 06:05 PM
Guest Re: Excel Com Addin 06-09-2005, 06:05 PM
Guest Re: Excel Com Addin 06-15-2005, 06:05 PM
Guest Re: Excel Com Addin 06-15-2005, 08:05 PM
Guest Re: Excel Com Addin 06-09-2005, 07:05 PM
Guest Re: Excel Com Addin 06-10-2005, 01:05 AM
Guest Re: Excel Com Addin 06-10-2005, 08:05 AM
Guest Re: Excel Com Addin 06-10-2005, 09:05 AM
  1. #1
    Nick Hebb
    Guest

    Re: Excel Com Addin

    Try using an InputBox() function with Type:= 8


  2. #2
    Jody L. Whitlock
    Guest

    Re: Excel Com Addin

    Nick Hebb wrote:

    > Try using an InputBox() function with Type:= 8


    InputBox?? Make the user type the cellrange in? I was kinda hoping to
    allow the user to use the mouse, select his/her cells, and detect
    these...

  3. #3
    STEVE BELL
    Guest

    Re: Excel Com Addin

    I think you should try it...
    It should create a RefEdit box that does what you want.

    --
    steveB

    Remove "AYN" from email to respond
    "Jody L. Whitlock" <tierscheiss1977@hotmail.com> wrote in message
    news:ekCiZrTbFHA.348@TK2MSFTNGP14.phx.gbl...
    > Nick Hebb wrote:
    >
    >> Try using an InputBox() function with Type:= 8

    >
    > InputBox?? Make the user type the cellrange in? I was kinda hoping to
    > allow the user to use the mouse, select his/her cells, and detect
    > these...




  4. #4
    Jody L. Whitlock
    Guest

    Re: Excel Com Addin

    STEVE BELL wrote:

    > I think you should try it...
    > It should create a RefEdit box that does what you want.


    RefEditBox???? Now I'm confused, I thought we were talking InputBoxes?
    No, just kidding, sory. Anyhew, I will discuss with the team if
    InputBox is acceptable....

    Thanks,
    Jody W.

  5. #5
    Dave Peterson
    Guest

    Re: Excel Com Addin

    There's a difference between: Inputbox and application.inputbox.


    "Jody L. Whitlock" wrote:
    >
    > STEVE BELL wrote:
    >
    > > I think you should try it...
    > > It should create a RefEdit box that does what you want.

    >
    > RefEditBox???? Now I'm confused, I thought we were talking InputBoxes?
    > No, just kidding, sory. Anyhew, I will discuss with the team if
    > InputBox is acceptable....
    >
    > Thanks,
    > Jody W.


    --

    Dave Peterson

  6. #6
    RB Smissaert
    Guest

    Re: Excel Com Addin

    Type:= 8 means user can select a range, just as you want.

    RBS


    "Jody L. Whitlock" <tierscheiss1977@hotmail.com> wrote in message
    news:ekCiZrTbFHA.348@TK2MSFTNGP14.phx.gbl...
    > Nick Hebb wrote:
    >
    >> Try using an InputBox() function with Type:= 8

    >
    > InputBox?? Make the user type the cellrange in? I was kinda hoping to
    > allow the user to use the mouse, select his/her cells, and detect
    > these...



  7. #7
    Chip Pearson
    Guest

    Re: Excel Com Addin

    Excel has its own InputBox, separate from the standard VBA
    InputBox. When you set the Type parameter to 8, the use can
    select a range using the mouse. E.g.,

    Dim Rng As Range
    On Error Resume Next
    Set Rng = Application.InputBox("Select A Range", Type:=8)
    If Not Rng Is Nothing Then
    MsgBox "You selected: " & Rng.Address
    End If


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "Jody L. Whitlock" <tierscheiss1977@hotmail.com> wrote in message
    news:ekCiZrTbFHA.348@TK2MSFTNGP14.phx.gbl...
    > Nick Hebb wrote:
    >
    >> Try using an InputBox() function with Type:= 8

    >
    > InputBox?? Make the user type the cellrange in? I was kinda
    > hoping to
    > allow the user to use the mouse, select his/her cells, and
    > detect
    > these...




  8. #8
    Jody L. Whitlock
    Guest

    Re: Excel Com Addin

    Chip Pearson wrote:

    > Excel has its own InputBox, separate from the standard VBA
    > InputBox. When you set the Type parameter to 8, the use can
    > select a range using the mouse. E.g.,
    >
    > Dim Rng As Range
    > On Error Resume Next
    > Set Rng = Application.InputBox("Select A Range", Type:=8)
    > If Not Rng Is Nothing Then
    > MsgBox "You selected: " & Rng.Address
    > End If


    That worked very nicely, thank you! Now, I just need to figure out how
    to loop through every cell in that range, tally up the results, then
    write the tally into another cell. Is there a good site that explains
    alot of this stuff?

    Thanks,
    jody

  9. #9
    Bob Phillips
    Guest

    Re: Excel Com Addin

    Dim Rng As Range
    Dim cell As Range
    Dim tmp
    On Error Resume Next
    Set Rng = Application.InputBox("Select A Range", Type:=8)
    If Not Rng Is Nothing Then
    MsgBox "You selected: " & Rng.Address
    End If

    For Each cell In Rng
    If IsNumeric(cell.Value) Then
    tmp = tmp + cell.Value
    End If
    Next cell

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Jody L. Whitlock" <tierscheiss1977@hotmail.com> wrote in message
    news:uaeJ$BfcFHA.2440@TK2MSFTNGP10.phx.gbl...
    > Chip Pearson wrote:
    >
    > > Excel has its own InputBox, separate from the standard VBA
    > > InputBox. When you set the Type parameter to 8, the use can
    > > select a range using the mouse. E.g.,
    > >
    > > Dim Rng As Range
    > > On Error Resume Next
    > > Set Rng = Application.InputBox("Select A Range", Type:=8)
    > > If Not Rng Is Nothing Then
    > > MsgBox "You selected: " & Rng.Address
    > > End If

    >
    > That worked very nicely, thank you! Now, I just need to figure out how
    > to loop through every cell in that range, tally up the results, then
    > write the tally into another cell. Is there a good site that explains
    > alot of this stuff?
    >
    > Thanks,
    > jody




+ 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