Results 1 to 5 of 5

Personal.XLSB macro pasting into Personal.XLSB

Threaded View

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    UK
    MS-Off Ver
    Excel 20010
    Posts
    25

    Personal.XLSB macro pasting into Personal.XLSB

    I have a worksheet that I need to perform some copy and paste operations on when it's opened, which I do with a macro in PERSONAL.XLSB. It's a really long and messy macro, but the critical part of it is this, as far as I can tell:

    wb.worksheets("sheet2").select
    Range("A" & somevariable).select
    Selection.copy
    wb.worksheets ("sheet1").select
    Range("A" & anothervariable).select
    Activesheet.paste
    Which is for some reason pasting into PERSONAL.XLSB. I tried getting rid of the "Sheet1" in PERSONAL.XLSB but that just caused an error. Is there a better way of pointing Excel at the spreadsheet I want?
    Last edited by davepoth; 07-11-2015 at 07:40 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Running a Personal.XLSB Macro From Within Another Personal.XLSB Macro
    By js0873 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-23-2015, 09:58 AM
  2. Replies: 0
    Last Post: 01-15-2015, 05:53 AM
  3. [SOLVED] How to save a macro in the personal.xlsb folder
    By ajan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2015, 02:55 PM
  4. cannot run macro if personal.xlsb is hidden
    By illusionek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2014, 08:16 AM
  5. Replies: 0
    Last Post: 05-10-2012, 09:22 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