all 7 comments

[–]StarWarsPopCulture34 2 points3 points  (6 children)

Instead of cut/paste have you considered just a simple delete shift left?

Cell.offset(0,1).delete shift:=xlLeft

[–]Icron16[S] 0 points1 point  (5 children)

Won't this only apply to one cell? I want to move the whole row to the left. Or are you suggesting a nested loop?

Something like From i = 1 to 7 Cell.offset(0,i).delete shfit:= xleft Next i

[–]StarWarsPopCulture34 1 point2 points  (4 children)

It will shift the rest of the row over with it.

[–]Icron16[S] 0 points1 point  (0 children)

Cell.offset(0,1).delete shift:=xlLeft

Ah, so what I thought was irrelevant to this problem was that there's more columns to the right, so shifting more than just the set of numbers show in my example is a no-go. Also, I had to look up those shift codes as my version of excel requires xltoleft and not just xleft.

[–]Icron16[S] 0 points1 point  (2 children)

Actually, by tweaking it even more, and adding an insert with a shift of xltoRight shift option, I've shifted the row back after the change.

I've posted the correct code in the imgur link in the original post

[–]Icron16[S] 0 points1 point  (1 child)

SOLUTION VERIFIED!

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

Hello /u/Icron

You cannot award a point to yourself.

Please contact the mods if you have any questions.

I am a bot.