+ Reply to Thread
Results 1 to 3 of 3

Transfer data from one sheet to another when Sheet is not active

  1. #1
    Registered User
    Join Date
    02-10-2016
    Location
    Anaheim, CA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Transfer data from one sheet to another when Sheet is not active

    Hi there,

    I have a userform that will transfer data from one sheet to another based on a cell criteria with a click of a button. My code works well however, since the sheet the data is being transferred to is not the current active sheet, it does not transfer the data. I need to have the other sheet (where the data is being transferred from) the default active sheet for the end user.

    Is there a way that the data would transfer from one sheet to another even though the other sheet is not active?

    here's my code:
    Please Login or Register  to view this content.
    Thank you for your help.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Transfer data from one sheet to another when Sheet is not active

    Add the worksheet qualifier sht. in front of all the Range references like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-10-2016
    Location
    Anaheim, CA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Transfer data from one sheet to another when Sheet is not active

    Quote Originally Posted by AlphaFrog View Post
    Add the worksheet qualifier sht. in front of all the Range references like this...

    Please Login or Register  to view this content.
    Thank you AlphaFrog! That solved my problem!

    Cheers!

+ 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] Transfer data from sheet to other sheet, protecting the second sheet.
    By Markcassar123 in forum Excel General
    Replies: 4
    Last Post: 06-25-2015, 02:05 AM
  2. [SOLVED] Issue regarding recorded Macro to transfer data from Input sheet to Storage sheet
    By Hirad001 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-29-2015, 04:26 PM
  3. Replies: 5
    Last Post: 12-30-2014, 12:41 PM
  4. How to transfer data from a daily input sheet to a separate monthly total sheet
    By Jcooper71 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2014, 02:37 PM
  5. Replies: 1
    Last Post: 01-04-2014, 06:37 PM
  6. Transfer inputed Data from Sheet x: row x to Sheet y : row y or Sheet z: row z
    By Joecruz749 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2013, 03:20 PM
  7. active cell transfer to a new sheet
    By davidfaught in forum Excel General
    Replies: 0
    Last Post: 08-20-2008, 11:30 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