+ Reply to Thread
Results 1 to 2 of 2

VBA Update values in existing sheet in another workbook

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    isle of man
    MS-Off Ver
    Excel 2010
    Posts
    4

    VBA Update values in existing sheet in another workbook

    Hi

    What I have is a workbook (workbook1) where data is entered into a specific sheet (sheet1) in cells B2:J7. I have an Auto_Close procedure on workbook1 that opens another workbook (workbook2), copies sheet1 to workbook2, renames that new sheet in workbook2 to the current date then saves and closes.

    This all works perfectly fine but I am stuck on what coding to use to check to see if workbook2 already has a sheet with that days date, the format of the date is dd-mm-yy. If it does already exist then I want to update the data in cells B2:J7 on that sheet but without removing any data already in there. e.g workbook2 already has a sheet named 25-07-13 and cell B2 has the number 2. Workbook1 is closed with the number 3 in cell B2, checks workbook2 and sees that there is already a sheet with today's date (25-07-13), then instead of creating a new sheet or wiping the number 2 from cell B2 updates the cell to 5 (2+3).

    I'm also probably going to need some error handling in there.

    Sorry if it sounds over complicated but any help will be appreciated!

    Thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: VBA Update values in existing sheet in another workbook

    Something like:
    Please Login or Register  to view this content.
    Changing names as appropriate.

+ 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. Find row with specific values in workbook A and update with values from row in workbook B
    By crusader4321 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 09:28 PM
  2. Update few columns of information from another sheet to my existing report
    By Adamlearnexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2012, 02:01 AM
  3. Update few columns of information from another sheet to my existing report
    By Adamlearnexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2012, 09:09 PM
  4. [SOLVED] Copy Sheet from One workbook to another EXISTING workbook
    By Ken Soenen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2006, 12:10 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