Results 1 to 6 of 6

How to refer to the workbook where the macro when another workbook is open during runtime?

Threaded View

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    42

    How to refer to the workbook where the macro when another workbook is open during runtime?

    Basically I have 2 workbooks open at the same time say (WS and WB)
    WS<--- where the macro is
    WB<--- a workbook opened during runtime

    during runtime WB is activated to check for comparisons and if the values are not
    equal I need to write something on WS for the log and then continue the check on WB.
    how do I do this?

    I tried
    thisworkbook.sheets("log").range("A1").value = "something"
    but it results to error.
    Any help would be greatly appreciated thank you!
    Last edited by JBeaucaire; 09-04-2012 at 08:02 AM.

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