+ Reply to Thread
Results 1 to 6 of 6

Copy and Paster an autosum to new workbook

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Copy and Paster an autosum to new workbook

    Hi,

    Not sure if this can be done or not.

    Is there any way a macro can search the current work sheet for an autosum in Colum J, copy the value and then open a new spreadsheet and paste the value in to a predetermined cell?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    This macro will search in Column J for the first "SUM", copy it, insert a new spreadsheet into your workbook and paste that value into cell A1.

    Please Login or Register  to view this content.
    ChemistB

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Quote Originally Posted by ChemistB
    This macro will search in Column J for the first "SUM", copy it, insert a new spreadsheet into your workbook and paste that value into cell A1.

    Please Login or Register  to view this content.
    ChemistB
    ChemistB,

    I've tweaked your code a bit

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    I need to read more. Thanks VBA!
    I just bought the Definitive Guide to Excel VBA by Kofler.

    ChemistB

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

  6. #6
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702
    Hi,

    Thanks for getting back to me, I have been away so I have only just had the chance to get back to this.

    If I was to combine the two codes would this be correct:

    Please Login or Register  to view this content.
    Rather than add a sheet can I specify a spreadsheet to open and then get it to paste into that?

    e.g Idealy I would like it to go to C:\Dashboard.xls and then in the sheet called Data and Cell F20

    also, When I ran the above code it created two sheets and pasted the data in rather than just the one sheet.

+ 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