+ Reply to Thread
Results 1 to 5 of 5

VBA Copy, move, unlock active sheet and paste as values to a new workbook

  1. #1
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    VBA Copy, move, unlock active sheet and paste as values to a new workbook

    I am currently using this VBA code, it allows me to copy, move and unlock the active sheet to a new workbook. How to copy them as VALUES only, not in original format with formula?

    PHP Code: 
    Public Sub CopySheetToNewWorkbook()
    ActiveSheet.Copy
    ActiveSheet
    .Unprotect Password:="dbf4ever"

    End Sub 
    Last edited by archvanarl; 08-09-2020 at 03:00 AM.

  2. #2
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: VBA Copy, move, unlock active sheet and paste as values to a new workbook

    This code is not doing what you say.
    It is only copying the sheet and unprotecting the sheet. Nothing more
    Greetings

    Tor


  3. #3
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: VBA Copy, move, unlock active sheet and paste as values to a new workbook

    Hello again,

    if you really want to move all the data from the active sheet into a new workbook, then you don't even need to unprotect the sheet.
    Try it like this:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: VBA Copy, move, unlock active sheet and paste as values to a new workbook

    Yes, but the original sheet is protected and the password was "dbf4ever". I am trying to have them transferred/copied to a new workbook unlocked as values not with formulae from the original sheet.

  5. #5
    Forum Contributor
    Join Date
    11-25-2018
    Location
    Philippines
    MS-Off Ver
    Ms Office 365
    Posts
    217

    Re: VBA Copy, move, unlock active sheet and paste as values to a new workbook

    UP and bump!!

+ 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] Copy Active worksheet data and paste in closed workbook in specific sheet
    By SARAN89 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-24-2020, 11:19 AM
  2. [SOLVED] Copy values from other sheet and TRANSPOSE Paste in active sheet
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2019, 02:23 AM
  3. [SOLVED] Macro to copy rows 1:6 to a new workheet after active sheet and paste only values.
    By catscats11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2018, 04:33 PM
  4. Copy only active sheet 1 and paste into other workbook after or before n sheets
    By FUN2BALA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2018, 12:51 PM
  5. Copy values from sheets in workbook and paste in one sheet in the same workbook
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2015, 04:14 AM
  6. Copy same range from multiple sheets and paste into one sheet of active workbook
    By jadown in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2013, 01:41 PM
  7. Open workbook, filter values, copy/paste into Active workbook.
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 12:17 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