Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg
 
Posts: n/a
Default Automate cut/paste functions - Help!

I am trying to fill in certain information in a column using the cut/paste
function. Specifically Im copying the contents of cell C4 and pasting it
into C5:C7. Now in cell C8 there is a new text that needs to be copied into
C9:C15€¦ then new text in C16 etc etc.. The spacing varies greatly in how many
I have to paste but this repeats for about 25,000 lines or so. Does anyone
have a suggestion on how I can automate this? Please help!!
Thanks!

  #2   Report Post  
bj
 
Posts: n/a
Default

If it is a non equaiton you want copied, I would probably use a quick macro
similar to

sub fl()
for r = 4 to 25000
if cells(r,3)<"" then xx=cells(r,3) else cells(r,3)=xx
next r
end sub

"Greg" wrote:

I am trying to fill in certain information in a column using the cut/paste
function. Specifically Im copying the contents of cell C4 and pasting it
into C5:C7. Now in cell C8 there is a new text that needs to be copied into
C9:C15€¦ then new text in C16 etc etc.. The spacing varies greatly in how many
I have to paste but this repeats for about 25,000 lines or so. Does anyone
have a suggestion on how I can automate this? Please help!!
Thanks!

  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

If I understand your layout correctly, and cells C5:C7, C9:C15, C17:??? etc,
are now blank, do this.

Select all of column C, then Edit/Goto, click the Special button and select
Blanks. One of the empty cells will be the active cell (should be C5 if my
assumptions are correct). In that cell, type an equal sign, point to the cell
above it with the mouse, and press CTRL+ENTER. If the first cell was C5, then
it will contain the formula =C4, cell C6 will have the formula =C5, etc.

To convert these formulas to their values, now select all of column C and
Edit/Copy. Without changing the selection, Edit/Paste Special and select the
Values option.


On Mon, 13 Jun 2005 09:11:02 -0700, "Greg"
wrote:

I am trying to fill in certain information in a column using the cut/paste
function. Specifically I’m copying the contents of cell C4 and pasting it
into C5:C7. Now in cell C8 there is a new text that needs to be copied into
C9:C15… then new text in C16 etc etc.. The spacing varies greatly in how many
I have to paste but this repeats for about 25,000 lines or so. Does anyone
have a suggestion on how I can automate this? Please help!!
Thanks!


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
Default User Defined Functions - How? flycast Excel Discussion (Misc queries) 4 May 26th 05 04:26 AM
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM
remote functions rob1234 Excel Worksheet Functions 1 May 12th 05 06:18 PM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM


All times are GMT +1. The time now is 10:03 PM.

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"