Search : in
By :

Data frm one excel sheet to other excel sheet

Last answer on Oct 17, 2009 4:02:13 am BST sree, on Oct 16, 2009 9:35:39 am BST 
 Report this message to moderators

Hello,
I am trying to retrieve the data from one excel sheet to another excel sheet in separate work book.

how can i do this one.

Configuration: Windows XP
Firefox 3.5.3

Best answers for « data frm one excel sheet to other excel sheet » in :
Transferring data from one hard drive to another ShowTransferring data from one hard drive to another First of all you should use some tools.. transfering data from one hard drive to another is quite simple. Once you have connected the new hard drive to your pc, check your...
How to freeze a row in an excel sheet ShowHow to freeze a row in an excel sheet To freeze a line in an excel sheet, for example line 1: Select line 2. Go to menu Window and select Freeze panes.
Create an Attendance Report with Excel sheet ShowCreate an Attendance Report with Excel sheet Issue Solution Issue In the case you want to create an attendance report with Excel , here below you will find a nice example: Consider that your report will have the following...

1

 LouisSteph, on Oct 17, 2009 4:02:13 am BST

Dear Sree,

You manually copy and paste the data in the sheets or

still you can create a macro for copying it. Below is the

macro codes that you will have to use:



Sub CopyDataToPlan()

Dim LDate As String
Dim LColumn As Integer
Dim LFound As Boolean

On Error GoTo Err_Execute

'Retrieve date value to search for
LDate = Sheets("Rolling Plan").Range("B4").Value

Sheets("Plan").Select

'Start at column B
LColumn = 2
LFound = False

While LFound = False

'Encountered blank cell in row 2, terminate search
If Len(Cells(2, LColumn)) = 0 Then
MsgBox "No matching date was found."
Exit Sub

'Found match in row 2
ElseIf Cells(2, LColumn) = LDate Then

'Select values to copy from "Rolling Plan" sheet
Sheets("Rolling Plan").Select
Range("B5:H6").Select
Selection.Copy

'Paste onto "Plan" sheet
Sheets("Plan").Select
Cells(3, LColumn).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

LFound = True
MsgBox "The data has been successfully copied."

'Continue searching
Else
LColumn = LColumn + 1
End If

Wend

On Error GoTo 0

Exit Sub

Err_Execute:
MsgBox "An error occurred."

End Sub

Thanks in advance.

Reply to LouisSteph