Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default move formulas to a different column

I have a lot of cells with formulas in Column J. I would
like to move any cell that has a formula to Column L. The
formulas are all over the place and are not contiguous.
Moreover, the cells that have formulas are also formatted.
Is there any way to identify cells that have formulas in
the range (J2:J1600) and move those to the appropriate
cell in column L
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default move formulas to a different column

set rng = Range("J2:J1600").SpecialCells(xlFormulas)

for each cell in rng
cells(cell.row,"L").formula = cell.formula
cell.ClearContents
Next

--
Regards,
Tom Ogilvy

"indu aronson" wrote in message
...
I have a lot of cells with formulas in Column J. I would
like to move any cell that has a formula to Column L. The
formulas are all over the place and are not contiguous.
Moreover, the cells that have formulas are also formatted.
Is there any way to identify cells that have formulas in
the range (J2:J1600) and move those to the appropriate
cell in column L



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
Find last column, move formulas over, copy/paste data Mike R. Excel Worksheet Functions 0 September 19th 07 06:40 AM
copying formulas forward and have the column refference move backw D Excel Worksheet Functions 2 August 28th 07 08:47 PM
freezing formulas when cells move BradleyP Excel Worksheet Functions 4 August 31st 06 03:33 PM
how to move the cursor to column A after entering data column F tskaiser New Users to Excel 2 April 29th 06 02:28 PM
move contents of column C based on criteria related to column A Debra Excel Discussion (Misc queries) 2 December 27th 05 10:25 PM


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