#1   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default macro copy problem

See one answer in microsoft.public.excel.programming


Please don't post the same question in multiple newsgroups. At best, it
tends to fragment your answers. It also tends to waste the time of those
answering questions that have already been answered in another group.
For tips on using these groups effectively, see

http://cpearson.com/excel/newposte.htm




In article ,
"JaimeTimbrell" wrote:

Hello All,

I am very new tomacros and VBA and I have a question relating to a copy
problem.

The problem I have is in automating the number of rows down with which I
copy a range of cells.

At present in the macro I have this bit:

Range("T5:AC5").Select
Application.CutCopyMode = False
Selection.Copy
Range("T6:T1008").Select
ActiveSheet.Paste

now rather than '1008' I want the 1008 bit to be a number that appears in
cell T1 (the number is different from sheet to sheet).

How do I do that? I have tried for quite a while to find the solution using
a lot of excellent MVP websites, but alas the problem appears to in my
interpretation of their help!

Regards,
Jaime.

  #2   Report Post  
Posted to microsoft.public.excel.misc
JaimeTimbrell
 
Posts: n/a
Default macro copy problem

Thanks for your help. Sorry I didnt realise that all the sites were linked
and that I was causing a problem.


"JE McGimpsey" wrote:

See one answer in microsoft.public.excel.programming


Please don't post the same question in multiple newsgroups. At best, it
tends to fragment your answers. It also tends to waste the time of those
answering questions that have already been answered in another group.
For tips on using these groups effectively, see

http://cpearson.com/excel/newposte.htm




In article ,
"JaimeTimbrell" wrote:

Hello All,

I am very new tomacros and VBA and I have a question relating to a copy
problem.

The problem I have is in automating the number of rows down with which I
copy a range of cells.

At present in the macro I have this bit:

Range("T5:AC5").Select
Application.CutCopyMode = False
Selection.Copy
Range("T6:T1008").Select
ActiveSheet.Paste

now rather than '1008' I want the 1008 bit to be a number that appears in
cell T1 (the number is different from sheet to sheet).

How do I do that? I have tried for quite a while to find the solution using
a lot of excellent MVP websites, but alas the problem appears to in my
interpretation of their help!

Regards,
Jaime.


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
copy from Excel to Word by macro with certain for wmax77 Excel Discussion (Misc queries) 0 February 12th 06 11:33 AM
macro problem tweacle Excel Worksheet Functions 0 December 27th 05 12:27 PM
Copy Paste Special Macro Bud Hughes Excel Discussion (Misc queries) 2 August 31st 05 02:00 AM
copy text between 2 open workbooks via macro bigdaddy3 Excel Worksheet Functions 2 August 18th 05 06:37 PM
Macro problem Jim New Users to Excel 2 March 16th 05 07:36 PM


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

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

About Us

"It's about Microsoft Excel"