+ Reply to Thread
Results 1 to 2 of 2

Simple task: Open a workbook, copy a range, paste into another workbook

  1. #1
    Registered User
    Join Date
    03-14-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    7

    Simple task: Open a workbook, copy a range, paste into another workbook

    Hi everyone,

    My macro skills have improved quite a bit since joining this site but I'm currently running into a problem that's driving me crazy. It's frustrating because the task is so simple and yet my code simply isn't working!

    Here's what I'm trying to do:

    1. Open Workbook2
    2. Copy a range Workbook2
    3. Paste range in original workbook

    When I run the following code, nothing gets selected and nothing is copied. It's very strange because I've programmed similar tasks in VBA and never had a problem until now. Why does this not work??

    Please Login or Register  to view this content.
    Last edited by fbonetti; 04-21-2011 at 01:12 PM.

  2. #2
    Registered User
    Join Date
    03-14-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Simple task: Open a workbook, copy a range, paste into another workbook

    Nevermind :D

    I found the solution. The files I'm opening are in [Read-Only] format, thus not allowing me to copy or select cells. All I had to do was add "Editable:= True" to the first line.

    Workbooks.Open Filename:="C:\Users\dasoftware\Documents\IHDA files\Complete\" & FilePath, Editable:= True

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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