Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Moving XL Data over By one Column (*Same Row)

Hello

We have some data currently in Range("D:L") on a spreadsheet
We are trying to move the data over by one column to Range("E:N") via macro
We have tried everything. XL does delete to the right

A B C D E....
1 x x x x x 'Befor
2 x x x x x 'Afte

This should really be simple...but it is just not clicking for us. Please help

Sub CutpasteOneRow(
For each cell in selectio
cell.cut cell. offset (0,1
nex
End Su

o

activesheet.range("D2:D200"
if cell.value = "X" the
with selectio
..cut destiation:=.offset(0,1
end wit
end i

Thanks
Roz


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Moving XL Data over By one Column (*Same Row)

Columns(4).Insert

--

Vasant

"rozb" wrote in message
...
Hello,

We have some data currently in Range("D:L") on a spreadsheet.
We are trying to move the data over by one column to Range("E:N") via

macro.
We have tried everything. XL does delete to the right.

A B C D E.....
1 x x x x x 'Before
2 x x x x x 'After

This should really be simple...but it is just not clicking for us. Please

help.

Sub CutpasteOneRow()
For each cell in selection
cell.cut cell. offset (0,1)
next
End Sub

or

activesheet.range("D2:D200")
if cell.value = "X" then
with selection
.cut destiation:=.offset(0,1)
end with
end if

Thanks,
Rozb




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving XL Data over By one Column (*Same Row)

The easiest way would be to insert a new column at D

Columns("D:D").Inser

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Moving XL Data over By one Column (*Same Row)

ub InsertExtraBlankCell(
ActiveSheet.Range("d2:d200").Selec
rng = Selection.Rows.Coun
ActiveCell.Offset(0, 0).Selec
Application.ScreenUpdating = Fals
For i = 1 To rn
If ActiveCell.Value = "Reg:" The
Selection.Insert Shift:=xlToRigh
Els
ActiveCell.Offset(1, 0).Selec
End I
Next
Application.ScreenUpdating = Tru
End Su

We were working backwards..so we inserted instead.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving XL Data over By one Column (*Same Row)

Thank you.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Moving XL Data over By one Column (*Same Row)

Thank you.
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
Moving Column data formula Puzzled Excel Worksheet Functions 1 June 6th 10 01:48 AM
Moving data from one column to another TLAngelo Excel Discussion (Misc queries) 5 April 25th 08 04:21 AM
Moving scattered cell data to new column? LarryW Excel Worksheet Functions 4 November 11th 07 11:26 AM
Moving data from multiple cells to one column [email protected] Excel Discussion (Misc queries) 2 June 28th 06 02:15 AM
moving data within a column Kathy Excel Worksheet Functions 1 December 6th 04 08:24 PM


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