LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Selecting and pasting formula into a variable field size!

Hi All,

I have a work sheet that I am importing some data into, from column
I:Q, however the imported data is variable, i.e there could be 30-3000
records imported.

I am running a marco that selects the formula I would like to copy
down, but need a line that will let me fill down however stopping at
the end of the valid cells?

I have tried all sorts, going in reverse, chosing the last cell in
column I, then using the offset rule. however when trying to copy to
all the cells above (excluding top line) I can not get this value to be
variable.

Selection.End(xlDown).Select
ActiveCell.Offset(0, -1).Activate
Range("A2:H163").Select

This is what I have, I would love to work from line 2 down to last
line... but I am having a few difficulties.

any help would be great.

Regards
Craig

 
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
defining a variable-size worksheet area for copying & pasting z.entropic Excel Worksheet Functions 3 August 11th 07 09:30 PM
Selecting Cells With Sumproduct Formula, Then Pasting Its Value Over Top Carroll[_2_] Excel Programming 5 August 19th 05 07:00 PM
Selecting cols and doing a formula using variable offsets McManCSU[_5_] Excel Programming 1 June 17th 05 07:28 PM
How to find out the size of a variable-size array ? Adrian[_7_] Excel Programming 1 July 6th 04 09:12 AM
pivot field size (column field) Kanan Excel Programming 0 April 9th 04 11:41 PM


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