+ Reply to Thread
Results 1 to 3 of 3

Object required error

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Lightbulb Object required error

    Dear ALL

    I trying to make a code that go through each excel file in folder and change background to no fill,the code runs but after some times having error object required

    Please Login or Register  to view this content.
    Thanks
    farrukh
    Last edited by farrukh; 05-08-2011 at 04:20 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Object required error

    You have an undefined variable wks in

    Please Login or Register  to view this content.

    A good way of spotting these is to add the following line at the top of the code

    Please Login or Register  to view this content.
    This will cause a compile error and highlight the problem when an attempt is made to run the code.
    Martin

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Object required error

    HI mrice

    Thanks a lot for helping the code now perfectly works....

    Thanks
    Farrukh

+ 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