+ Reply to Thread
Results 1 to 6 of 6

declare public dictionary on workbook open

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    declare public dictionary on workbook open

    Hi,

    i want to add list to dictionary and use it in worksheet change event later when worksheets are changed.

    Something like :

    Please Login or Register  to view this content.
    how to do this?

    Best,
    Jacek

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: declare public dictionary on workbook open

    Do you mean?
    1) To a standard module
    Please Login or Register  to view this content.
    2) ThisWorkbook modue
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: declare public dictionary on workbook open

    Great,

    thank you !
    working like a charm!

    Best,
    Jacek

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: declare public dictionary on workbook open

    Hi,

    i want to refresh the topic:

    On workbooks Open i am setting Dictionary.

    On Module i have:

    Please Login or Register  to view this content.
    but i can not use this dictionary.
    Why?

    Best,
    Jacek
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: declare public dictionary on workbook open

    You need to set the reference to the objects first... e.g.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: declare public dictionary on workbook open

    You can't assign all the items to a simple String variable. Use:

    Please Login or Register  to view this content.
    Rory

+ 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. Public Declare Function FindWindowA in 64bit
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2018, 06:25 AM
  2. how to declare and initialize public variables
    By alexholly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 10:14 PM
  3. [SOLVED] Declare public variable as double but saves as integer
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-11-2015, 11:29 AM
  4. How to Declare a global public variable on Macro Button
    By faboualfa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2007, 08:38 AM
  5. Declare a public variabl
    By Patrick Simonds in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-30-2006, 08:55 PM
  6. Public declare for Set....
    By zapatista66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2005, 08:29 AM
  7. [SOLVED] How to declare variable as public.
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 02:06 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