#1   Report Post  
Hirsch
 
Posts: n/a
Default Macro modification

Dim rngDataRange As Range

ActiveSheet.UsedRange.Select
Selection.Offset(0, 19).Select
Set rngDataRange = Selection

Range("T1").Select
Cells(1, 20).Copy
rngDataRange.Offset(0, 0).Resize(1, 1).Select
ActiveSheet.Paste
rngDataRange.Offset(0, 0).Select
Selection.FillDown

This is a portion of a macro I'm working on. The intent is to dump a
formula in cell T1, and use a fill down. Although this fill down
incorporates column T and 18 additional columns. What needs to be modified
to just have Column T fill down.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this

Dim rngDataRange As Range

Set rngDataRange = ActiveSheet.UsedRange.Offset(0, 19).Resize(, 1)
Cells(1, 20).Copy rngDataRange.Cells(1, 1)
rngDataRange.FillDown


--
HTH

Bob Phillips

"Hirsch" wrote in message
...
Dim rngDataRange As Range

ActiveSheet.UsedRange.Select
Selection.Offset(0, 19).Select
Set rngDataRange = Selection

Range("T1").Select
Cells(1, 20).Copy
rngDataRange.Offset(0, 0).Resize(1, 1).Select
ActiveSheet.Paste
rngDataRange.Offset(0, 0).Select
Selection.FillDown

This is a portion of a macro I'm working on. The intent is to dump a
formula in cell T1, and use a fill down. Although this fill down
incorporates column T and 18 additional columns. What needs to be

modified
to just have Column T fill down.



  #3   Report Post  
Hirsch
 
Posts: n/a
Default

Thank you very much... it was perfect... I just struggle with these macros.

Thanks again

"Bob Phillips" wrote:

Try this

Dim rngDataRange As Range

Set rngDataRange = ActiveSheet.UsedRange.Offset(0, 19).Resize(, 1)
Cells(1, 20).Copy rngDataRange.Cells(1, 1)
rngDataRange.FillDown


--
HTH

Bob Phillips

"Hirsch" wrote in message
...
Dim rngDataRange As Range

ActiveSheet.UsedRange.Select
Selection.Offset(0, 19).Select
Set rngDataRange = Selection

Range("T1").Select
Cells(1, 20).Copy
rngDataRange.Offset(0, 0).Resize(1, 1).Select
ActiveSheet.Paste
rngDataRange.Offset(0, 0).Select
Selection.FillDown

This is a portion of a macro I'm working on. The intent is to dump a
formula in cell T1, and use a fill down. Although this fill down
incorporates column T and 18 additional columns. What needs to be

modified
to just have Column T fill down.




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

and simpler :-)

--
HTH

Bob Phillips

"Hirsch" wrote in message
...
Thank you very much... it was perfect... I just struggle with these

macros.

Thanks again

"Bob Phillips" wrote:

Try this

Dim rngDataRange As Range

Set rngDataRange = ActiveSheet.UsedRange.Offset(0, 19).Resize(, 1)
Cells(1, 20).Copy rngDataRange.Cells(1, 1)
rngDataRange.FillDown


--
HTH

Bob Phillips

"Hirsch" wrote in message
...
Dim rngDataRange As Range

ActiveSheet.UsedRange.Select
Selection.Offset(0, 19).Select
Set rngDataRange = Selection

Range("T1").Select
Cells(1, 20).Copy
rngDataRange.Offset(0, 0).Resize(1, 1).Select
ActiveSheet.Paste
rngDataRange.Offset(0, 0).Select
Selection.FillDown

This is a portion of a macro I'm working on. The intent is to dump a
formula in cell T1, and use a fill down. Although this fill down
incorporates column T and 18 additional columns. What needs to be

modified
to just have Column T fill down.






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
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Macro Modification Help Dmorri254 Excel Worksheet Functions 0 March 4th 05 03:51 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


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