+ Reply to Thread
Results 1 to 2 of 2

Select sheet inside or outside other select

  1. #1
    Registered User
    Join Date
    05-27-2007
    Posts
    1

    Select sheet inside or outside other select

    This seems to be quite a unique problem I have, maybe it is a simple problem that no one else has.

    I am trying to copy a value from one sheet and paste it to another sheet but I can not figure out where to put the Sheets("OrderData").Select.
    If I remove it completely then it copies the values to current sheet, OrderForm, because Sheets("OrderForm").Select was used previously.
    As soon as I try and place the OrderData.select in it doesnt work.

    here is a snippet of my code.

    Please Login or Register  to view this content.
    I have the Sheets("OrderData").Select currently commented out where I assumed it would usually go.
    Hopefully I have covered everything, I am a bit tired after spending many hours trying this so please excuse my noobishness.
    Last edited by MadRue; 05-27-2007 at 06:42 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Selecting and Active Cell are ususaly not needed. Also copy/PasteValues is dome much quicker when done with direct syntax
    Please Login or Register  to view this content.
    I modifyed your code to reflect this.
    Please Login or Register  to view this content.
    Also, if there is something in Sheets("OrderData").Range("A1"), testing for A2 is not needed.
    Please Login or Register  to view this content.
    will find the destination even if A2 is empty. If A1 isn't empty.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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