+ Reply to Thread
Results 1 to 6 of 6

8 Line Code Works On Other Computer, Not Mine

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    New York, US
    MS-Off Ver
    Excel 2016
    Posts
    10

    8 Line Code Works On Other Computer, Not Mine

    Please Login or Register  to view this content.

    This code looks through the table "CF_Feb" and replaces any blank cells with the value above. In theory. Someone helped me put this together and it works for them, but not me. I am running Excel 2010. I'm not sure what they have but could find out. When I try to run this it says
    "Run-Time error '1004':
    Application-defined or object defined error"

    Any ideas here?

    *edited. Thanks Fotis, I've added the code tags. I know this breaks rule 6a, but I hope it's alright
    Last edited by Relmiw; 02-11-2014 at 12:51 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 8 Line Code Works On Other Computer, Not Mine

    You probably need to check the named range Range("CF_Feb[Item]")
    Do you have the named range in your book, if you have, what is the range?

  3. #3
    Registered User
    Join Date
    02-11-2014
    Location
    New York, US
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: 8 Line Code Works On Other Computer, Not Mine

    I do have that as a named range in my Workbook. Not counting the headers it is A5:D17. With the headers it is A4:D17.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 8 Line Code Works On Other Computer, Not Mine

    I do not see any issue with the code if your named range is called CF_Feb[Item]) and does not have an error.

  5. #5
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: 8 Line Code Works On Other Computer, Not Mine

    Quote Originally Posted by Relmiw View Post
    Please Login or Register  to view this content.

    This code looks through the table "CF_Feb" ....
    I think your code is searching for a range named "CF_Feb[Item]" and not "CF_Feb" . Take '[Item]' out from your code.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  6. #6
    Registered User
    Join Date
    02-11-2014
    Location
    New York, US
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: 8 Line Code Works On Other Computer, Not Mine

    Hmm Bulina. I did, and it worked, but here's the weird thing: that is what I was trying before I added the [item] at the end. Well, it works now. Thanks very much for your help

+ 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. VLookup works in my computer, but not in another user computer.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2013, 04:41 PM
  2. [SOLVED] Need help understanding why this line of code works.
    By jbwitty in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2013, 01:01 AM
  3. [SOLVED] Pivot Table, recoded code vs mine, neither works!
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 10:08 AM
  4. a dll works only on my computer ?!
    By granbapt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2012, 08:22 AM
  5. combining sheets (code works from ron debruin but need 1 line modification)
    By Piyush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2005, 12:38 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