+ Reply to Thread
Results 1 to 4 of 4

Code in one Workbook effecting another Workbook

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    286

    Code in one Workbook effecting another Workbook

    I am using the following code to save one workbook (Timer.xlsm) at a regular interval. As well it puts a time in cell B3.
    This code runs while I am working on other workbooks. The problem is that while in the other workbook, and when "SaveThis" runs, the time is placed in cell B3 of the 2nd workbook.
    How can I modify the code to ensure the time only goes in B3 of Timer.xlsm?
    Thanks Sandy

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Code in one Workbook effecting another Workbook

    Change the sheet name to suit.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-20-2018
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    16

    Re: Code in one Workbook effecting another Workbook

    Try this one

    Please Login or Register  to view this content.
    Change "Sheet1" to the actual name of the sheet you want to display the Time

  4. #4
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    286

    Re: Code in one Workbook effecting another Workbook

    Thanks Guys that worked, no problems now. Cheers Sandy

+ 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] VBA code to update query from a password protected excel workbook and then close workbook
    By MrChipper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2017, 07:41 AM
  2. [SOLVED] VBA code to create a workbook and copy or move worksheets in to workbook through loop
    By anishkumarvs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-16-2015, 05:40 AM
  3. VBA code to copy data from current workbook to another workbook and send email
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2015, 06:47 AM
  4. [SOLVED] Opening new workbook and pasting values into current workbook - code issues
    By Stew1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2014, 07:56 AM
  5. [SOLVED] Code to cut cell from one workbook, close same workbook, and paste in different workbook
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 03-13-2014, 04:01 PM
  6. VBA code in Excel effecting other other excel worksheet/ workbook
    By Zeeman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 01:20 PM
  7. Code to open a workbook , copy info and return it to another workbook using a cell v.
    By england79m in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2008, 11:22 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