Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Incremental Cell Movement

I am using this to move the value in cell E33 to Sheet3 cell E28 but what I'd
like to be able to do is move cell E33 to sheet3 E28 the first run through
and then next run
E33 should go to sheet3 E29 and so on. Is this possible.


Worksheets("sheet1").Range("e33").Copy
Worksheets("sheet3").Range("e28").PasteSpecial _
xlPasteValues
Application.CutCopyMode = False
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Incremental Cell Movement

I suppose you want it to be written to the first blank cell in column E, am i
right?
In this case:
Worksheets("sheet1").Range("e33").Copy
Worksheets("sheet3").Range("E65536").End(xlup).off set(1,0).PasteSpecial _
xlPasteValues
Application.CutCopyMode = False

Regards,
Sébastien

"Weasel" wrote:

I am using this to move the value in cell E33 to Sheet3 cell E28 but what I'd
like to be able to do is move cell E33 to sheet3 E28 the first run through
and then next run
E33 should go to sheet3 E29 and so on. Is this possible.


Worksheets("sheet1").Range("e33").Copy
Worksheets("sheet3").Range("e28").PasteSpecial _
xlPasteValues
Application.CutCopyMode = False

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Incremental Cell Movement

Dim rng as range
Worksheets("sheet1").Range("e33").Copy
set rng = Worksheets("sheet3").Range("e28")
if not isempty(rng) then
if isempty(rng.offset(1,0)) then
set rng = rng.offset(1,0)
else
set rng = rng.End(xldown)
end if
End if
rng.PasteSpecial _
xlPasteValues
Application.CutCopyMode = False

--
Regards,
Tom Ogilvy


"Weasel" wrote in message
...
I am using this to move the value in cell E33 to Sheet3 cell E28 but what

I'd
like to be able to do is move cell E33 to sheet3 E28 the first run through
and then next run
E33 should go to sheet3 E29 and so on. Is this possible.


Worksheets("sheet1").Range("e33").Copy
Worksheets("sheet3").Range("e28").PasteSpecial _
xlPasteValues
Application.CutCopyMode = False



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
Active cell movement cmcgath Setting up and Configuration of Excel 1 March 31st 10 07:08 PM
Format a cell based on incremental numbers MurrayBarn Excel Worksheet Functions 3 June 23rd 09 02:22 PM
assign an incremental number to a cell, for each new spreadsheet MarkWatson Excel Worksheet Functions 0 June 21st 07 02:09 AM
Cell incremental increase stuck in van nuys Excel Worksheet Functions 2 April 14th 07 02:45 AM
Cell to cell movement with arrow keys moves entire sheet ken heinemann Excel Worksheet Functions 1 December 29th 06 12:30 AM


All times are GMT +1. The time now is 08:46 PM.

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"