+ Reply to Thread
Results 1 to 4 of 4

Error in Workbook Open subroutine

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164

    Error in Workbook Open subroutine

    Hi all,

    in my Workbook open I have the following code:
    Please Login or Register  to view this content.
    when it gets to snapshot.list = trend I get a runtime error '424' Object required error.

    can anyone advise please?
    I want to initialise my comboboxes when the workbook is opened.

    thanks in advance,
    Matt

  2. #2
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    Hey matpj...

    if the Snapshotbox is a combo box then to add the list you need to do this.

    Please Login or Register  to view this content.
    so for the trend you could do this.

    Please Login or Register  to view this content.
    So total code could look like this:

    Please Login or Register  to view this content.
    does this fix the problem??

  3. #3
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164
    hi
    thanks for the response
    when I run it I get a compile error saying
    "For Each control variable must be Variant or Object"

    trend is defined as a variant which I have assigned an array.
    is this the problem?

  4. #4
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    try declaring the trend as a string

+ 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