+ Reply to Thread
Results 1 to 4 of 4

Copy & Paste Multiple sections as values

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Question Copy & Paste Multiple sections as values

    I have this VBA code that works, however for my needs require the pasting to be done in Values.
    • Calculations are done on a sheet named Deductions, and linked directly to data sheet
    • data sheet is where the user manually keys the other information from multiple reports
    • The result is the user can run this macro and paste the weekly results on the appropriate quarter tab in the proper week
    • The YTD tab pulls data from each weekly section on the 4 quarter tabs

    So currently the paste is doing "all", so for the items calculation on the "Deductions" tab, those links appear, come next week, the user will use this again, and that data will be incorrect. So I need help with 2 things. And thank you so very much for your help!!
    • Changing the paste from "all" to "values"
    • After the macro is complete, the range on the "data" tab is still selected. A cell w/o data (such as B8) should be selected. I attempted to fix this unsuccessfully

    Please Login or Register  to view this content.
    ~*~ Sherry ~*~
    Poinciana, FL

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

    Re: Copy & Paste Multiple sections as values

    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
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Copy & Paste Multiple sections as values

    AlphaFrog,

    It works great! I had simply previously added ".PasteSpecial xlPasteValues" to the row beginning "SelAreas(i).", obviously there were errors. I di have one question. After the macro is complete, it went back to data tab and cell B8 as required. However, as I had selected the Qtr 4 tab, the final area pasted (which is the data in column W for 3 rows) is still selected. As this was just pasted, I would like to be able to "unselect" this data. You simply never know if the end user will accidently delete the data in the selected cells. If we can "deselect" that is my first choice. If however a specific cell would need to be selected, W5 could be that cell. Can you help with that?

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

    Re: Copy & Paste Multiple sections as values

    Please Login or Register  to view this content.

+ 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. Copy Paste Values from multiple workbooks to multiple sheets in one workbook
    By tatendamark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2017, 09:54 AM
  2. Copy sections from several tabs and paste as lists on one tab
    By razkowski in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2016, 09:42 AM
  3. Copy and paste - multiple sections thru multiple sheets
    By brose99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2015, 04:02 PM
  4. [SOLVED] Copy paste values to another workbook based on multiple cell values
    By Bazinga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2014, 12:41 PM
  5. need to copy paste certain sections from multiple excel files
    By freak11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2014, 10:26 AM
  6. Replies: 5
    Last Post: 07-31-2013, 08:21 AM
  7. Automate copy.paste of standard sections of emails into Excel
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2005, 11:06 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