Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Copy Cells from One sheet to another without Selecting

Here's what I have:
Sheets("Sheet1")
Range("B2").Select
Sheets("Sheet2").Select
Range("A1:D39").Select
Selection.Copy
Sheets("Sheet1").Select
ActiveSheet.Paste

Right now it selects sheet 1, finds cell B2, selects sheet 2, selects
A1:D39, copies, selects sheet 1 again (active cell here is still B2)
and pastes information. Much like one would expect.

I'd like to be able to do this without having to select Sheet2, without
using Selection.Copy or ActiveSheet.Paste. Another situation I need
addressed is to not have to give a range to be selected for the copied
cells.

The information in A1:D39 will be a schedule, but the schedule will be
changed every few months with not necessarily the same number of
entries. The first entry will always be found in A1 and it will span
at least 4 columns but more likely 6.

That's the best description I can think of for what I'm trying to
accomplish, feel free to ask questions though if something seems
unclear.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Copy Cells from One sheet to another without Selecting

This piece of the code is following an insert of several rows to put
this information in to, is it possible to just insert this information
instead of the blank rows? would that work better? still hoping there
is a solution without using Select or ActiveCell but i'm too new to
this to know.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Copy Cells from One sheet to another without Selecting

Is there no solution to this without doing using something similar to
what I have?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Copy Cells from One sheet to another without Selecting

How's this:
Sheets("Sheet2").Range("A1").CurrentRegion.Copy Sheets(1).Range("B2")
Note: Blank Rows or columns will cause you problems with this.
HTH

Die_Another_Day
Matt wrote:
Is there no solution to this without doing using something similar to
what I have?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MACRO: Selecting "Cancel" from a drop down to copy and paste entirerow to another sheet Nicole Hannington Excel Discussion (Misc queries) 1 July 20th 09 07:11 PM
MACRO: Selecting "Cancel" from a drop down to copy and paste entirerow to another sheet Nicole Hannington Excel Worksheet Functions 1 July 20th 09 06:51 PM
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
Auto copy/ paste on relevant work sheet when selecting list item Niraj Manglam Excel Programming 1 June 6th 06 03:13 PM
Selecting Specific Data to copy/move to a new sheet ksp Excel Programming 0 December 6th 05 07:32 AM


All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"