Results 1 to 2 of 2

copy only format and values and paste to other work sheet

Threaded View

  1. #1
    Registered User
    Join Date
    10-04-2015
    Location
    calicut
    MS-Off Ver
    office365
    Posts
    14

    copy only format and values and paste to other work sheet

    hi,

    in the given macro , can possible to copy only format and values from active work sheet and paste it to onother work book

    Dim wkbSource As Workbook
    Dim wkbDest As Workbook
    Dim shtToCopy As Worksheet
    
    Set wkbSource = ActiveWorkbook
    Set wkbDest = Workbooks.Open("d:\test\workbook1.xlsm")
    Set shtToCopy = wkbSource.Sheets("sheet2")
    shtToCopy.Copy wkbDest.Sheets(1)
    ActiveSheet.Name = Format(Now(), "dd-mm-yy")
    ActiveWorkbook.Save
    ActiveWorkbook.Close
    Last edited by jeffreybrown; 03-31-2020 at 04:29 PM. Reason: Please use code tags!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy paste of Excel custom number format into Powerpoint doesn't work
    By Philipp83 in forum PowerPoint Formatting & General
    Replies: 3
    Last Post: 03-28-2021, 01:03 PM
  2. conditional format can not work with copy paste values
    By keshavtale in forum Excel General
    Replies: 4
    Last Post: 09-24-2017, 11:03 PM
  3. Replies: 9
    Last Post: 11-20-2014, 12:03 PM
  4. [SOLVED] Copy data in one format from Sheet1 and paste to another sheet in another format.
    By FergusC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2012, 08:36 PM
  5. Replies: 1
    Last Post: 10-05-2005, 08:05 AM
  6. Replies: 1
    Last Post: 10-05-2005, 08:05 AM
  7. Replies: 1
    Last Post: 10-05-2005, 06: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