PC Review


Reply
Thread Tools Rate Thread

Copy Cell from one sheet to specific Col value

 
 
smandula
Guest
Posts: n/a
 
      13th Apr 2010
Hello,

Need help in a VBA format.
Sheet2 has a column of 15 rows, random numbers. i.e.H2 to H16

I need to sort these cells on Sheet1 with column headings 1 to 49
starting at row A25 going down again 15 rows A39

Therefore,that I may visually see a pattern of these 15 numbers.

With Thanks
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      13th Apr 2010
Record a macro when you:
Edit|Copy H2:H16 of sheet2
Edit|Pastespecial|Transpose onto A25 of sheet1
and continue to record when you sort A25:A39

And you'll have code that works ok.

But if you need help tweaking your recorded code, post back with what you have.
I'm sure you'll get help.

smandula wrote:
>
> Hello,
>
> Need help in a VBA format.
> Sheet2 has a column of 15 rows, random numbers. i.e.H2 to H16
>
> I need to sort these cells on Sheet1 with column headings 1 to 49
> starting at row A25 going down again 15 rows A39
>
> Therefore,that I may visually see a pattern of these 15 numbers.
>
> With Thanks


--

Dave Peterson
 
Reply With Quote
 
smandula
Guest
Posts: n/a
 
      13th Apr 2010
The Code listed below works on the same sheet.
I want the data Column to be on Sheet2
Stratified into the appropriate on sheet starting at row A25
'-----------------------------------------------------------
Sub RandomNumber()
Dim cell As Range
Dim lRow As Long
Dim lColumn As Long
Application.ScreenUpdating = False
For Each cell In _
Range("H2:H" & _
Range("H65536").End(xlUp).Row)
lRow = cell.Row
lColumn = cell.Value
Cells(lRow, lColumn) = cell.Value
Next 'cell
Application.ScreenUpdating = True
End Sub
'------------------------------------------------------------------

If possible change H65536 to H16

With Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy rows to new sheet based on specific cell value dlballard Microsoft Excel Worksheet Functions 4 18th Aug 2009 09:41 PM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Microsoft Excel Misc 0 29th Jun 2009 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Microsoft Excel Misc 0 26th Jun 2009 06:01 PM
Send data from userform to specific cell on specific sheet? =?Utf-8?B?SmVubkxlZQ==?= Microsoft Excel Programming 10 10th Mar 2007 02:55 AM
Getting specific cell from one sheet to paste in another sheet? =?Utf-8?B?Um96Yg==?= Microsoft Excel Programming 0 1st Mar 2004 06:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 AM.