+ Reply to Thread
Results 1 to 2 of 2

Copying VBA module to another sheet

  1. #1
    Forum Contributor
    Join Date
    01-06-2015
    Location
    london,uk
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2307) 64-bit....Windows 10 Enterprise
    Posts
    118

    Copying VBA module to another sheet

    The codes below I assigned to two buttons in a particular sheet. I would like to copy this code and used it in another similar sheet which also has two buttons. The other sheet interacts with different sheets. Can you help with this please?


    Sub Bevel1_Click()
    '
    ' Bevel1_Click Macro
    '

    '
    Range("B9:M28").Select
    Selection.Copy
    Sheets(Range("P1").Value).Select
    Range("B3").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False
    Sheets("sheet 1 input").Select

    End Sub
    Sub Bevel3_Click()

    Sheets(Range("P1").Value).Select
    Range("B3:M26").Select
    Selection.Copy
    Sheets("sheet 1 input").Select
    Range("B9").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False
    End Sub

  2. #2
    Forum Contributor
    Join Date
    01-06-2015
    Location
    london,uk
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2307) 64-bit....Windows 10 Enterprise
    Posts
    118

    Re: Copying VBA module to another sheet

    Solved .....

+ 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. [SOLVED] Code locks cells when inserted in sheet module but returns error in standard module
    By yoda66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 07:39 AM
  2. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  3. Proplem copying a Module - Error 50289
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2006, 08:15 PM
  4. Copying cells from on sheet to another sheet (via sheet module)
    By CRayF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2005, 04:05 PM
  5. [SOLVED] Calls from sheet module to ThisWorkbook module
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2005, 11:05 AM

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