Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default finding last non-blank cell and then copying it to the next cell

Hi there, bit of help needed please.

Should really know this, but say I have a column of data running from col A
to col x (any column really). I want to set up a macro that whenever it runs
it goes to the last column that has formulas (in this case a vlookup) in it,
copies and paste the formula into the next column and then copy and pastes
special values over the old data.
Tried using one of those auto macro things, and this is what I've come up
with to give you some sort of idea. Any ideas how to automatically find the
last non-blank column and then do the copy and paste thing?
Many thanks,
Mike

Range("T5:T11").Select
Selection.Copy
Range("U5").Select
ActiveSheet.Paste
Range("T5:T11").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=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
Finding next non-blank cell Stu[_2_] Excel Discussion (Misc queries) 4 October 23rd 07 01:29 PM
Finding a value and copying it to another cell Noncentz303 Excel Worksheet Functions 2 May 2nd 07 07:05 PM
Finding the bottom non-blank cell in a range Fenneth Excel Discussion (Misc queries) 7 July 6th 06 06:05 PM
finding blank cell and moving specific data into it BeJay Excel Worksheet Functions 1 May 30th 06 07:06 PM
Copying a Blank Cell FLKULCHAR Excel Worksheet Functions 5 September 19th 05 12:13 PM


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