+ Reply to Thread
Results 1 to 3 of 3

Run-time error '1004': Method 'Sheets' of object '_Global' failed

  1. #1
    Registered User
    Join Date
    11-17-2013
    Location
    Norway
    MS-Off Ver
    Excel 2003 and 2013
    Posts
    2

    Run-time error '1004': Method 'Sheets' of object '_Global' failed

    I am using a vba code in Excel for storing a workbook every two minutes. This is running Global, used via network in an Access database. The workbook is showing data from a Counter measures liters on ten different lines.

    This VBA code also takes a backup of the spread sheets data at seven o'clock every morning to a sheet in the workbook called History.

    When starting the Workbook (Tmb.xls) I am getting the fault "Run-time error '1004': Method 'Sheets' of object '_Global' failed"

    In Debug it is stopping in the line: Sheets("Beer Count").Select, its marked in the code.

    This means I have to start the macro manually, and then every thing is working OK.

    It needs the macro to run automatically on start-up.

    Can anybody help? Please?




    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Run-time error '1004': Method 'Sheets' of object '_Global' failed

    Well two possibilities I can think of:
    -There is no sheet called "Beer count" in the active workbook
    -The sheet "Beer count" is hidden

  3. #3
    Registered User
    Join Date
    11-17-2013
    Location
    Norway
    MS-Off Ver
    Excel 2003 and 2013
    Posts
    2

    Re: Run-time error '1004': Method 'Sheets' of object '_Global' failed

    Thank you very much.

    Suppose I have to live with it. I can't find any fault.

    It is important to get it start Automatic. We are depending on it to pay tax to the authorities.

    It is dangerous for us, if macros don’t start when we open the workbook.

+ 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. [SOLVED] Run-time error 1004 - Method 'Range' of object'_Global' failed
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2013, 03:33 PM
  2. [SOLVED] Run time error 1004: method range of object _global failed
    By Danry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2012, 07:31 PM
  3. Run-time-error 1004 -- Method 'Range' of object '_Global' failed
    By tilleyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2012, 10:55 PM
  4. Run-time error '1004': Method 'Range' of object '_Global' failed
    By claremount in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-26-2010, 08:01 AM
  5. Run-time error '1004': Method 'Cells' of object _Global failed
    By Fran D in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2006, 11:50 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