+ Reply to Thread
Results 1 to 5 of 5

Inputbox compile error

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Inputbox compile error

    Hi All,

    I have a very basic macro which I want to expand upon however the code is returning a Compile Error: Wrong number of arguments or invalid property assignment.

    When I run the Macro in a blank WB its ok however when I run it in the WB I'm working on it returns the error and highlights the 'Range'. Any ideas why this might be happening?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Inputbox compile error

    ...returning a Compile Error
    There's nothing there that would cause a Compile Error... and a compile error is not generated when you're running the code, it would occur BEFORE any code actually runs. Perhaps if you uploaded a copy of a workbook that displays the issue?

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Inputbox compile error

    Hi, thanks for looking.

    I have managed to get it to work by adding more code.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Inputbox compile error

    So not a compile error, then.

  5. #5
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Inputbox compile error

    Excel was saying 'Compile Error' but take your point. Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  2. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  3. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  4. compile error: compile error expected
    By odeno in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2008, 04:30 PM
  5. Compile error: Invalid qualifier with inputbox
    By grime in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2006, 06:01 PM
  6. [SOLVED] VBAProject name compile error, not defined at compile time
    By Matthew Dodds in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2005, 03:20 PM
  7. Compile Error in Excel 2004 when Inputbox contains "VBCRLF"
    By QTP Professional in forum Excel General
    Replies: 1
    Last Post: 11-18-2005, 07:50 PM

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