Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Copying cells

Hi

I have the lots of sheets all set out in the following
format

A B C D E
15 JAN APC SUPPLIES GBP C19278 2652.25

There could be any number of lines. What I would like to
do is copy the data to a template I have set up.

I would like B1 to be copied to B6 on the template file.

With Columns A, C, D and E I need these copying to A16,
B16, C16 and D16 respectively.

If possible I would also like the name of the original
sheet to be copied to cell B10 and then to save as the
reference in B10 if this is possible.

Thanks

Jahson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Copying cells

Jahso

The following should start you going. It assumes that book1 is the data sheet, and book2 is the template. It copies the data from row 1 in book1 to the specified output area in book2

Ton

Sub aaa(
Set outfile = Workbooks("book2").Sheets("sheet1"
Workbooks("book1").Activat
Range("b1").Copy Destination:=outfile.Range("b6"
Range("a1").Copy Destination:=outfile.Range("a16"
Range("c1:e1").Copy Destination:=outfile.Range("b16"
outfile.Range("b10").Value = ActiveSheet.Nam
End Su

----- Jahson wrote: ----

H

I have the lots of sheets all set out in the following
forma

A B C D
15 JAN APC SUPPLIES GBP C19278 2652.2

There could be any number of lines. What I would like to
do is copy the data to a template I have set up.

I would like B1 to be copied to B6 on the template file.

With Columns A, C, D and E I need these copying to A16,
B16, C16 and D16 respectively.

If possible I would also like the name of the original
sheet to be copied to cell B10 and then to save as the
reference in B10 if this is possible

Thank

Jahso

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
Copying Cells lee Excel Discussion (Misc queries) 1 September 28th 06 10:11 PM
Copying Cells LauraC Excel Worksheet Functions 2 March 29th 06 03:38 PM
How do I skip blank cells when copying over a range of cells? tawells Excel Discussion (Misc queries) 2 June 7th 05 09:36 PM
copying cells sanpanico Excel Discussion (Misc queries) 1 June 1st 05 05:44 PM
Excel should allow cloaking of certain cells when copying cells b. LDI Woody Excel Worksheet Functions 1 March 11th 05 04:55 PM


All times are GMT +1. The time now is 11:22 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"