Results 1 to 12 of 12

Sheet activation working fine for me, but not for others?

Threaded View

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Sheet activation working fine for me, but not for others?

    I've got a bit of a macro that opens a second workbook, copies its contents, pastes it into the workbook from which the macro was run, then closes the workbook that was opened.

        Sheets("Temp").Select
        Cells.Select
        Selection.ClearContents
        Workbooks.Open Filename:="sourceofcopy.xlsx"
        Cells.Select
        Selection.Copy
        Windows("alreadyopen.xlsm").Activate
        Range("A1").Select
        ActiveSheet.Paste
        **Windows("sourceofcopy.xlsx").Activate
        ActiveWorkbook.Application.CutCopyMode = False
        ActiveWindow.Close
    This all runs fine on my own PC, but at the starred activation line it errors out for others on our LAN. Any inclination as to why that may be, or alternatively would there be a good way to perform this copy without opening or activating the sourceofcopy.xlsx workbook? The aim is simply to copy the entire contents of a single worksheet to the open workbook for analysis. VBA is definitely not my line of work, so please have patience with the newb!
    Last edited by seed; 07-25-2013 at 03:59 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Goal Seek not working on 1 PC but works fine on another?
    By jennymc in forum Excel General
    Replies: 7
    Last Post: 07-11-2013, 10:49 AM
  2. [SOLVED] Two VBA Functions working fine with Win XP but not working with Win 7
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-01-2013, 04:01 PM
  3. [SOLVED] Macro to highlight keywords-Macrobutton not working fine
    By Awalgaonkar in forum Word Formatting & General
    Replies: 2
    Last Post: 03-27-2013, 08:03 AM
  4. [SOLVED] hi i have formula it's working fine but i want to Automatically run macros at Specified.
    By vikas2424 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2012, 01:21 PM
  5. Minimise/maximise Modeless Userform on activation/de-activation
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2009, 11:24 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