Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding next non-blank cell | Excel Discussion (Misc queries) | |||
Finding a value and copying it to another cell | Excel Worksheet Functions | |||
Finding the bottom non-blank cell in a range | Excel Discussion (Misc queries) | |||
finding blank cell and moving specific data into it | Excel Worksheet Functions | |||
Copying a Blank Cell | Excel Worksheet Functions |