Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help! How do I shift rows down?


Hi,

I have a relatively simple task to ask. First, here is my code:


Sub GetPWCPersonnel()

Dim intRec As Integer, rngData As Range, rngItem As Range
rngAccounts As Range, rngOut As Range
Dim mysht As Worksheet

Application.ScreenUpdating = False

For Each mysht In ThisWorkbook.Worksheets
With mysht
Set rngData = .Range("A71"
.Range("A500").End(xlUp)).SpecialCells(xlCellTypeC onstants)
End With
With Workbooks("Intermediary - PWC").Worksheets("sheet3")
Set rngAccounts = .Range("A1:A"
.Range("A65536").End(xlUp).Row)
End With

For Each rngItem In rngData
Set rngOut = rngAccounts.Find(What:=rngItem)

If rngOut Is Nothing Then
rngItem.Offset(0, 2).Value = "N/A"

Else
Set rngOut = rngOut.Offset(0, 1)
Range(rngOut, _
rngOut.End(xlDown).End(xlToRight)).Copy _
Destination:=rngItem.Offset(0, 2)

'need code here!!

End If

Next rngItem
Next mysht
End Sub

How do I code it so that when it copies the information into th
destination cell, it will shift all the rows down? Please help! Thank
in advance

--
Sethaholi
-----------------------------------------------------------------------
Sethaholic's Profile: http://www.excelforum.com/member.php...fo&userid=2511
View this thread: http://www.excelforum.com/showthread.php?threadid=39186

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help! How do I shift rows down?


Record a simple macro and it will show you how. Then copy i

--
McManCS
-----------------------------------------------------------------------
McManCSU's Profile: http://www.excelforum.com/member.php...fo&userid=2437
View this thread: http://www.excelforum.com/showthread.php?threadid=39186

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
Shift Rows Down When Expand Pivot Table Joyce Excel Discussion (Misc queries) 0 March 21st 10 04:25 PM
shift the cursor down 2 rows please. Steved Excel Worksheet Functions 2 May 25th 06 07:09 AM
Change rows into columns, 90 degree shift v-jo58 Excel Discussion (Misc queries) 3 May 1st 06 09:23 PM
HOW DO I SHIFT ROWS BASED ON A GIVEN VALUE MIKE K Excel Discussion (Misc queries) 2 April 29th 05 07:44 PM
HOW DO I SHIFT ROWS BASED ON A GIVEN VALUE MIKE K Excel Discussion (Misc queries) 1 April 22nd 05 02:44 AM


All times are GMT +1. The time now is 06:02 AM.

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"