+ Reply to Thread
Results 1 to 5 of 5

Excel Code Not Working As expected

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Excel Code Not Working As expected

    Hi

    I have a small problem with the code attached to the spreadsheet. It will not display the dataform

    Sub DataEntryForm()
        Range("A9").Select
        ActiveSheet.ShowDataForm
    End Sub
    I get a error message "Run time 1004"

    I would like to start at Range(“A9”)

    I have searched google for a solution. Found a couple but could not get them to work.

    I have attached the spreadsheet.

    Many thanks
    Attached Files Attached Files
    Have a great day!!!!

    Lou

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,353

    Re: Excel Code Not Working As expected

    In the Name Manager, check that you have a Named Range called Database and that it refers to:
    Formula: copy to clipboard
    ='HMD Accounts'!$A$10:$I$18


    At the moment, you have Database1 and it has Ref errors


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,353

    Re: Excel Code Not Working As expected

    See the updated workbook ...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Excel Code Not Working As expected

    Hi Trevor

    That was easy

    Many, many thanks great appreciated

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,353

    Re: Excel Code Not Working As expected

    You're welcome.

    That was easy
    Not as easy as I make it look




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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 VBA RemoveDuplicates not working as expected
    By mcwsky09 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-27-2014, 12:06 AM
  2. Excel Pro. Plus 2010 - Chart template not working as expected
    By mycroft in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-05-2014, 09:17 PM
  3. Excel autofill not working as expected
    By avp3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 02:14 AM
  4. [SOLVED] 'Find' not working as expected (Excel vba).
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2013, 12:01 PM
  5. Avoiding page breaks across merged cells - Code not working as expected
    By Alan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2005, 11:05 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