LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA block cell copying.

Need help please,

Need some VBA code i can run.

I need to sort in numerical order and cut (as there are survey photo's
in the sheet) the surrounding cell contents and paste them in to the
bottom of the sheet. Note the sheet will have up to 100 sections to
copy.

There is an old sequential numbering, nominally (a few numbers may be
omitted) 1 though to 100 and new numbering that could be any unique
number between for example 3 to 340

I'll use the example below to show what I'm trying to do....
I wish to re-order the grid (3x3) of cells around the number in the
middle.
I have put in a line space between the 3x3 grid to make reading it as
a text file easier.

Before
--------

1, pp, ppp
X, 3, XXX
n, nn, nnn

2, qq, qqq
X, 1, XXX
m, mm, mmm

3 tt, ttt
X, 2, XXX
d, dd, ddd

4, hh, hhh
X, 6, XXX
l, ll, lll

5, w, www
X, 7, XXX
a, aa, aaa

After
--------

2, qq, qqq
X, 1, XXX
m, mm, mmm

3 tt, ttt
X, 2, XXX
d, dd, ddd

1, pp, ppp
X, 3, XXX
n, nn, nnn

4, hh, hhh
X, 6, XXX
l, ll, lll

5, w, www
X, 7, XXX
a, aa, aaa
 
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
How do I get all narrative to fit into one cell block? Debbie111 Excel Worksheet Functions 2 May 21st 10 09:37 PM
Copying a block of cells so that it updates automatically Kiersten L Excel Worksheet Functions 2 October 7th 08 01:28 AM
Block Cell juanpablo Excel Discussion (Misc queries) 3 January 3rd 08 07:23 PM
Copying block (range of cells) based on a value of a specific cell-VBA Branimir Excel Programming 1 October 15th 03 06:07 PM
Copying a block of data Rick[_11_] Excel Programming 4 August 18th 03 03:06 AM


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