+ Reply to Thread
Results 1 to 7 of 7

InputBox object required error

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    let me know what message is popup each time

    Sub InputBoxTest()
    Dim MySelection As Range
    Set MySelection = Application.InputBox(prompt:="Select a range of cells", Type:=8)
    msgbox MySelection.address
    MySelection.Select
    End Sub

  2. #2
    Registered User
    Join Date
    02-01-2005
    Posts
    4

    address message

    The message box shows the selected address but only when the macro runs correctly.
    If the inputbox goes to error the message box does not execute.

    did you try reproducing problem on your machine?

  3. #3
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    Strange thing I am not getting that error . I am using windows 98/NT/2000


    try using this macro

    Sub InputBoxTest()

    MySelection = Application.InputBox(prompt:="Select a range of cells")
    range(MySelection).select
    End Sub

  4. #4
    Registered User
    Join Date
    02-01-2005
    Posts
    4
    tried this but macro fails on "Range(MySelection).Select" as "myselection" is not set by inputbox.

    When you say it works fine for you have you added conditional formatting to worksheet cell B1 as per description of problem? Also the conditional formatiing must contain a function e.g. "cell value is less than =today()-6"

  5. #5
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    Yes I did use the conditional format as defined by you.

    What operating system are you using

  6. #6
    Registered User
    Join Date
    02-01-2005
    Posts
    4
    2000 pro but I have tried same file on (Me 2000 and XPhome)
    any chance of emailing a copy of your file for me to try?
    peter.wetzler@hydro.com

+ 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