Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Copy Cell Simplification

I posted this prob yesterday but don't think I explained it very well.

I want to copy in excess of 50 different cell contents from one worksheet in
a workbook to a worksheet in a different workbook.

Rather than have reams and reams of recorded code that laboriously switches
between the two books I am hoping for any idea's to simplify the process and
make it easy to make any changes

The process has to be done on an individual cell by cell basis.

Any suggestions appreciated


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Copy Cell Simplification

How about:

Open both workbooks. Do the Copy, but Paste Special as Link. Then close
them. The next day, after you have changed the source workbook, leave it
open. Then open the workbook with the links (so both workbooks will be open)

Excel will probably ask you if you want to refresh the links and you should
agree.

No more cut/paste
--
Gary's Student


"Gazza" <mallin"nospam" wrote:

I posted this prob yesterday but don't think I explained it very well.

I want to copy in excess of 50 different cell contents from one worksheet in
a workbook to a worksheet in a different workbook.

Rather than have reams and reams of recorded code that laboriously switches
between the two books I am hoping for any idea's to simplify the process and
make it easy to make any changes

The process has to be done on an individual cell by cell basis.

Any suggestions appreciated



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Copy Cell Simplification

That suggestion won't work because I need to distribute the second workbook
so I don't want the links - also it's a rolling series of results over a 13
month period - the earlist month gets deleted and I need to import (or
manually type) the latest set of results so again I don't want any form of
linking.

Cheers for replying though.


"Gary's Student" wrote in message
...
How about:

Open both workbooks. Do the Copy, but Paste Special as Link. Then close
them. The next day, after you have changed the source workbook, leave it
open. Then open the workbook with the links (so both workbooks will be
open)

Excel will probably ask you if you want to refresh the links and you
should
agree.

No more cut/paste
--
Gary's Student


"Gazza" <mallin"nospam" wrote:

I posted this prob yesterday but don't think I explained it very well.

I want to copy in excess of 50 different cell contents from one worksheet
in
a workbook to a worksheet in a different workbook.

Rather than have reams and reams of recorded code that laboriously
switches
between the two books I am hoping for any idea's to simplify the process
and
make it easy to make any changes

The process has to be done on an individual cell by cell basis.

Any suggestions appreciated





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Copy Cell Simplification

I don't see the big problem. It is just as easy to switch from one
workbook to another as it is to switch from one worksheet to another.
Sounds like a simple for...next loop.

Sounds like something you want to be able to run again later after you
have updated some of the data.

John

  #5   Report Post  
Posted to microsoft.public.excel.programming
KL KL is offline
external usenet poster
 
Posts: 201
Default Copy Cell Simplification

To copy data from one worksheet/workbook to another by VBA code there is no
need to switch between them or select anything to begin with. So Gazza why
don't you just describe the structure of your data and the task in a bit
more detail? Maybe you could give the cell addresses and books/sheets names
and we try and put together a procedure for you. I guess you are
underestimating the VBA authomation big deal :-)

Regards,
KL


wrote in message
oups.com...
I don't see the big problem. It is just as easy to switch from one
workbook to another as it is to switch from one worksheet to another.
Sounds like a simple for...next loop.

Sounds like something you want to be able to run again later after you
have updated some of the data.

John





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default Copy Cell Simplification

Agreed, no need to switch.
So long as we know to copy from where, to where, we can adopt this
Range("A1").Copy Workbooks("tmp.xls").Sheets(1).Range("B2")


--
Regards
PY & Associates
Excel customization service provider

"KL" wrote in message
...
To copy data from one worksheet/workbook to another by VBA code there is

no
need to switch between them or select anything to begin with. So Gazza why
don't you just describe the structure of your data and the task in a bit
more detail? Maybe you could give the cell addresses and books/sheets

names
and we try and put together a procedure for you. I guess you are
underestimating the VBA authomation big deal :-)

Regards,
KL


wrote in message
oups.com...
I don't see the big problem. It is just as easy to switch from one
workbook to another as it is to switch from one worksheet to another.
Sounds like a simple for...next loop.

Sounds like something you want to be able to run again later after you
have updated some of the data.

John





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Copy Cell Simplification

KL,

The simplified form of what I want to do is copy from :

Sheet CA in Book 1 Cells a1 to e1 into
Sheet CA_A in Book 2 Cells c2, c3, d4, f2, g4

(So content of cell a1 in Book 1 goes into cell c2 in book 2 and so on)


All I'm looking for is a start in doing this. The "real"spreadsheets are
much bigger than the example above

"KL" wrote in message
...
To copy data from one worksheet/workbook to another by VBA code there is
no need to switch between them or select anything to begin with. So Gazza
why don't you just describe the structure of your data and the task in a
bit more detail? Maybe you could give the cell addresses and books/sheets
names and we try and put together a procedure for you. I guess you are
underestimating the VBA authomation big deal :-)

Regards,
KL


wrote in message
oups.com...
I don't see the big problem. It is just as easy to switch from one
workbook to another as it is to switch from one worksheet to another.
Sounds like a simple for...next loop.

Sounds like something you want to be able to run again later after you
have updated some of the data.

John





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
Simplification of Formula lmavroff Excel Discussion (Misc queries) 3 April 13th 10 03:32 PM
Formula Simplification Please ... Ken Excel Discussion (Misc queries) 6 May 9th 09 08:24 AM
Code simplification Sandy Excel Worksheet Functions 3 June 30th 07 08:11 PM
Simplification help Mike Smith NC Excel Worksheet Functions 3 July 12th 06 06:28 PM
Code simplification russell-skmr3 Excel Programming 4 August 5th 03 06:36 AM


All times are GMT +1. The time now is 05:31 AM.

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"