+ Reply to Thread
Results 1 to 3 of 3

VBA Worksheet.Move Question

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA Worksheet.Move Question

    I have a Workbook called "Workbook1" that contains a number of data sheets.

    Workbook1 contains a subroutine that produces a report consisting of 40 worksheets, produced one sheet at a time.

    After each report worksheet is produced in Workbook1 it is moved by the subroutine to a report workbook called "Workbook2".

    Everything works fine with the exception that every time each of the 40 report worksheets is moved to Workbook2, Workbook2 is activated and I need to reactivate Workbook1 to continue with the VBA code execution.

    This rapid switching between active workbooks causes the computer monitor to flicker back and forth between displaying the active worksheet in Workbook1 and the active worksheet in Workbook2. This is not good from the user experience perspective.

    Is there a way in excel VBA to move worksheets from one workbook to a second workbook without activating the second workbook? Any other solutions to this problem???


    Thanks for any info. Karl

  2. #2
    Registered User
    Join Date
    11-21-2014
    Location
    Dalton, GA
    MS-Off Ver
    2010
    Posts
    13

    Re: VBA Worksheet.Move Question

    if you are worried about the flickering, one thing you could do is put

    Please Login or Register  to view this content.
    At the beginning of your code.

    It would speed up your code as well as keep the "flickering" from happening.

    As for the avoiding activating different workbooks, Someone with more experience may be able to help with that. I know you can with worksheets but I am not certain with workbooks.
    Last edited by ChristopherBrandonKi; 12-05-2014 at 04:50 PM.

  3. #3
    Registered User
    Join Date
    11-21-2014
    Location
    Dalton, GA
    MS-Off Ver
    2010
    Posts
    13

    Re: VBA Worksheet.Move Question

    wait, you have to manually click workbook one with your mouse to continue the code execution?

+ 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] making a cell in a worksheet (when clicked on) move you to a different worksheet
    By gwa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-06-2013, 06:44 PM
  2. [SOLVED] Macro in excel to move a row of data from one worksheet to another worksheet
    By wmdowty in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-26-2013, 11:06 AM
  3. Need to move data that matches criteria in cell and move to new worksheet
    By panagle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:23 AM
  4. Can I script to move data from a worksheet of tables/forms into 1 worksheet with 1 table
    By andybrown65 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 02:35 PM
  5. Replies: 1
    Last Post: 02-11-2012, 11:15 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