+ Reply to Thread
Results 1 to 2 of 2

Copy/Paste

Hybrid View

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    2

    Unhappy Copy/Paste

    I have two worksheets ( sheet 1, sheet 2) for sheet 2 I want all my messy formulas and other algorithms to go into. For sheet 1 I just want nice clean outputs that have been generated by sheet 2. What is the call procedure for that.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi, try this code in a VBA module:
    Sub copyValuesAndFormats()
        Sheets("Sheet2").Cells.Copy
        Sheets("Sheet1").Cells.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, _
            Operation:=xlNone, SkipBlanks:=False, Transpose:=False
        Application.CutCopyMode = False
    End Sub
    You can then run it from the macros list (Tools -> Macros...)

+ 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