+ Reply to Thread
Results 1 to 2 of 2

VBA issue creating new workbook with range

  1. #1
    Registered User
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    44

    VBA issue creating new workbook with range

    Hello,

    I am trying to figure out a VBA code for creating a new workbook with data paste- but I seem to keep getting errors with whatever changes I make. Essentially I am trying to have excel (VBA) take a range from the active sheet in a workbook (under a locked worksheet/workbook), create a new workbook and paste the copied range to cells A1. Seems relatively simple but I think I may be having issues because the workbook and sheet are locked and issues referencing the activesheet instead of a specific sheet name. The workbook where the range is copied from will have a name though. (I can make a reference to the password in another cell for it to unlock- but I cant seem to get excel to do this correctly)

    I included a simple code below but when I am trying to reference the activesheet it gives a subscript error. Also, I am having issues addressing the locked workbooks and sheets.

    Any help would be greatly appreciated.

    Thank you.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    44

    Re: VBA issue creating new workbook with range

    I wanted to add another code I found on another website. This one would work well but I still am having issues getting the locked worksheet/workbook to work correctly.

    Please Login or Register  to view this content.
    Last edited by Darkcloud617; 01-24-2020 at 04:22 PM.

+ 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] Creating Labels Issue
    By bigtunelover in forum Excel General
    Replies: 7
    Last Post: 05-11-2018, 11:57 AM
  2. Replies: 4
    Last Post: 06-27-2015, 09:43 AM
  3. Replies: 0
    Last Post: 05-01-2012, 05:25 AM
  4. Creating a range from another workbook
    By aborg88 in forum Excel General
    Replies: 1
    Last Post: 07-06-2011, 09:53 AM
  5. creating new worksheet tab issue
    By Mick S in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2011, 01:35 PM
  6. Issue copying multicell range to destination workbook range
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2008, 02:48 PM
  7. creating named range in workbook that refers to VBA range
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2008, 05:42 PM

Tags for this Thread

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