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: 1
Default Help with "Autofill" Destination Range

Hi all...
I'm new to VBA and need help in defining an "fillRange"
variable to help populate the "Autofill" Destination
property...
I've recorded a macro to perform the following:
From within a defined template initiate a macro to
Open an existing data file
Copy a selected range from the data file
Open the original template window (containing a number of
static formulas)
Paste the copy selection into the appropriate cell area of
the original template
Copy the static formulas using the "Autofill" function
Save the template as a new file...

The difficulty that I have is when I record macro, with
the Autofill function, using a set file, the
required "Destination Range" property value populates the
macro with the set range for that specific file. When I
use the macro on another data file with a differing number
of rows, the macro only works for the range as defined
from the first recording... I'm looking for a way to
create a variable where I can determine the "fillRange"
and use the variable as the "Destination Range" property
value ... any help?
 
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
Multiple "source" workbooks linked to single "destination" workboo DAVEJAY Excel Worksheet Functions 1 September 17th 07 05:33 PM
Possible to set "match destination format" as default in paste? DLG Excel Discussion (Misc queries) 1 March 9th 07 08:08 PM
Paste in "match destination format" macro code Hopelesslylost Excel Discussion (Misc queries) 2 June 18th 06 01:58 PM
How to set a default paste option of "Match Destination Format" John H @ EBR Excel Discussion (Misc queries) 1 April 17th 06 09:59 PM


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