Results 1 to 3 of 3

Add sheet. Copy Code & Paste in new Module

Threaded View

  1. #1
    Registered User
    Join Date
    11-07-2007
    Location
    Estonia
    MS-Off Ver
    OFF 2003 (11.8237.8221) SP3
    Posts
    16

    Add sheet. Copy Code & Paste in new Module

    How copy code in Sheet1 ... and paste to Sheet3 module?

    Sheet1 Have a macro:
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Selection.Copy
    Sheets("Sheet2").Activate
    ActiveSheet.Range("B1").Activate
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False
    AA
    End Sub

    Sub AA() ''
    Sheets.Add
    ActiveSheet.Name = "Sheet3"

    Sheet1.Select. Copy code: Private Sub Worksheet_BeforeDoubleClick(ByV... & Paste in the "Sheet3" WorkSheet_BeforeDoubleClick(B module End Sub
    Attached Files Attached Files

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