+ Reply to Thread
Results 1 to 12 of 12

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

Hybrid View

  1. #1
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

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

    Could the problem be that some people have Windows set to display file extensions and other's don't?

    By the way, the code could be tidied up a bit.
    ThisWorkbook.Sheets("Temp").Cells.ClearContents
     
    Set wbSrc = Workbooks.Open (Filename:="sourceofcopy.xlsx")
     
    wbSrc.ActiveSheet.Cells.Copy ThisWorkbook.ActiveSheet.Range("A1")
    
    Application.CutCopyMode = False
    
    wbSrc.Close
    Actually that might help with the original problem because it doesn't involve referring to workbooks with their names.
    If posting code please use code tags, see here.

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

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

    Quote Originally Posted by Norie View Post
    Could the problem be that some people have Windows set to display file extensions and other's don't?

    ThisWorkbook.Sheets("Temp").Cells.ClearContents
     
    Set wbSrc = Workbooks.Open (Filename:="sourceofcopy.xlsx")
     
    wbSrc.ActiveSheet.Cells.Copy ThisWorkbook.ActiveSheet.Range("A1")
    
    Application.CutCopyMode = False
    
    wbSrc.Close
    This appears to work wonderfully. Many thanks to you both. Don't know what I'd do if there weren't generous folks such as yourselves around to hold my hand and lead me through getting this stuff to work.

+ 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] 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