+ Reply to Thread
Results 1 to 3 of 3

Error message: Run-Time error '1004 '; application-defined or object-defined error

  1. #1
    Registered User
    Join Date
    10-22-2015
    Location
    oldham
    MS-Off Ver
    2013
    Posts
    3

    Error message: Run-Time error '1004 '; application-defined or object-defined error

    Hi

    I am fairly new to function/vba and I have tried to create a pin gernerator using the following function
    Please Login or Register  to view this content.
    When asking for large numbers of pins (i have been testing with 100 but will require more) it sometimes works but other times throws the error shown it the title. When opening the debug the line Cells(i, 1).Value = RandomizeF(myvalue) is shown as the error

    Any ideas as what is causing this and how to correct it.

    Many thanks

    Dave
    Last edited by Davasu; 10-22-2015 at 06:57 AM. Reason: code tags

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 VersionVersion 2411 Win 11
    Posts
    24,418

    Re: Error message: Run-Time error '1004 '; application-defined or object-defined error

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-22-2015
    Location
    oldham
    MS-Off Ver
    2013
    Posts
    3

    Re: Error message: Run-Time error '1004 '; application-defined or object-defined error

    It seems the problem was when the code generated a pin with an = sign.

    I have removed this from the characters used and it is now working fine.

    Thanks

    Dave

+ 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. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  2. excel macro run time error '1004'- Application defined or object defined error
    By kmadan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 09:51 AM
  3. Replies: 1
    Last Post: 03-12-2014, 12:42 PM
  4. [SOLVED] Run time error 1004 Application-Defined or Object-Defined Error - Placing data into next e
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-27-2014, 12:57 PM
  5. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  6. [SOLVED] run-time error '1004' application-defined or object-defined error - Excel 2007
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 02:46 AM
  7. Macro - Run-time Error '1004': Application defined or object defined error
    By robby10 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2010, 07:55 AM

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