+ Reply to Thread
Results 1 to 7 of 7

Change cell value in another excel window from first window

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    UK
    MS-Off Ver
    Excel 07
    Posts
    12

    Change cell value in another excel window from first window

    Hi all,

    Is it possible to change a cells' value in another excel file (open in separate window) via VBA in the first window?

    I am currently using a pasted link but this doesn't trigger a 'Change Event'

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    08-20-2012
    Location
    Walsall,England
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Change cell value in another excel window from first window

    You need to be a bit more specific. If you want code in one workbook to change the values of cells in another open workbook then yes you can do that:

    Please Login or Register  to view this content.
    Ant

  3. #3
    Forum Contributor
    Join Date
    08-20-2012
    Location
    Walsall,England
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Change cell value in another excel window from first window

    Or alternatively
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-04-2012
    Location
    UK
    MS-Off Ver
    Excel 07
    Posts
    12

    Re: Change cell value in another excel window from first window

    Thanks Ant.
    I should have mentioned, the two sheets are in separate instances of excel. Should the above code still work?

  5. #5
    Forum Contributor
    Join Date
    08-20-2012
    Location
    Walsall,England
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Change cell value in another excel window from first window

    I might be being stupid here, but when you say 'seperate instances' do you mean seperate workbooks? If so, then both of those lines will activate your other workbook provided it is open (the second line is probably better though). If it isn't open then you would need something like
    Please Login or Register  to view this content.
    to open it first.

  6. #6
    Registered User
    Join Date
    02-04-2012
    Location
    UK
    MS-Off Ver
    Excel 07
    Posts
    12

    Re: Change cell value in another excel window from first window

    Not at all. By 'separate instances' I mean having two Excel program windows open. I could open both workbooks in one window, but I wanted to make use of dual monitors.

  7. #7
    Forum Contributor
    Join Date
    08-20-2012
    Location
    Walsall,England
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Change cell value in another excel window from first window

    Oh right, in that case I'm not completely sure but i would think
    Please Login or Register  to view this content.
    should still work. I suppose the best thing to do is just stick that line of code in a procedure by itself, open up the second workbook and test it out.

+ 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