+ Reply to Thread
Results 1 to 5 of 5

Switching from Excel 2010 to Excel 2013 lots, lots of errors

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Switching from Excel 2010 to Excel 2013 lots, lots of errors

    Hello,
    I recently started to use Excel 2013, and I've got few problems with working on it. One of the most common is the issue that I can't copy from one sheet to another without selecting it. For example:

    I'm running macro from sheet A

    Please Login or Register  to view this content.
    and now I want to do something on Sheet ("A") but I end up with "B" selected and active.

    Second sample issue is setting Range variable (while sheet "A" is selected)
    Please Login or Register  to view this content.
    and on ac.Select it throws me back error, and likewise above macro ends up with sheet "B" active and selected.
    Last edited by drrazor; 12-08-2014 at 09:41 AM.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Switching from Excel 2010 to Excel 2013 lots, lots of errors

    It throws the error on the 2nd code because ActiveCell isnt a valid variable type, I removed the 2 ac lines and it worked fine.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Switching from Excel 2010 to Excel 2013 lots, lots of errors

    Sorry I made a mistake rewriting code here, it should be Dim ac as Range.

    And to answer your question I know that two lines in the middle will work perfectly fine, but that's the point, that after running them I want to get back where I started, so to select cell active before macro began to run.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Switching from Excel 2010 to Excel 2013 lots, lots of errors

    So dont bother copying and pasting then, simply place the value in.

    replace the 4 lines of the 2nd code with a single line of:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Switching from Excel 2010 to Excel 2013 lots, lots of errors

    This is just sample code, regular code is much more complicated, one of the examples is in figure 1, where I use PasteSpecial and xlMultiply, I need all of those functions running. I just want to know what happened in Excel 2013 that it stopped working.

+ 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. EXCEL 2010 taking lots of CPU time in spurts
    By Irony58 in forum Excel General
    Replies: 1
    Last Post: 09-11-2014, 12:51 PM
  2. lots of quesitons about excel
    By aabelf in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-27-2014, 08:46 PM
  3. [SOLVED] Created XLSM in Excel 2013, Customer Makes Change in Excel 2010 -> VBA,Formatting Errors
    By JPFold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2014, 09:51 AM
  4. [SOLVED] Excel Formula - Lots of ORs and ANDs
    By nikolasm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2013, 04:48 PM
  5. Lots of graphs, lots of text boxes needed
    By sarasbluegroove in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2011, 09:11 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