+ Reply to Thread
Results 1 to 3 of 3

Getting error 91

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Getting error 91

    HellO Friends,
    In my code I'm getting error 91 and the macro is not running. Please find the mistake in my code and send me corrected code. Please see the attachment.
    Sort_access is a sorting macro
    Sort_welcome is a macro to run the sort_access macro automatically at the time of opening.
    Thankinng you in anticipation.


    Mukesh
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Getting error 91

    Why not attach an Excel workbook with the code and some sample data?

    Also, can you indicate where/when the error occurs?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Getting error 91

    Hello Norie,
    Thank you for response. Now I have attached my sample file 'Access'. The error occurs after opening the file. In search sheet I don't want to paste the data of sr. no. from b6:b2000 only I want to delete the data from b4:c4. I don't understand why this is happening because I have not written a code for it. I want this in the 'Access' sheet. Please correct the error and inform me where I have made a mistake so that next time I will avoide it.
    Please don't change the 'welcome message code' because I want the message 'welcome' after completing the macro. I don't want vb information in message.
    Thanking you in anticipation.

    Mukesh
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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