473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Use of SOurcebook

13
Hi,

I'm trying to get a range from Sheet A based on some criteria and paste it to a newly added sheet with headings.

Wonder if someone can tell me what's wrong with the following: I'm not sure if there is such a thing as SourceSheet.

Any help is greatly appreciated!!!

Thanks much!!!!
Suki


Dim myNum As String
Dim SourceSheet As Worksheet

Dim x As Integer

Dim iRow As Long

Range("Z800").Select
myNum = Application.InputBox("Enter check deposit date eg dd/mm/yy")
ActiveCell.FormulaR1C1 = myNum
Range("C2:C1000").Select
Cells.Find(What:=myNum, After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
Range(Cells(iRow, 2), _
Cells(1000, 5)).Copy
Range("B1001").Select
ActiveSheet.Paste








Set SourceSheet = ActiveSheet
Application.Worksheets.Add



'Populate the heading description

Range("A1") = "Check Reference"

Range("B1") = "Check Amount"



Range("A2") = "Example"

Range("A2").Copy

Range("B2").PasteSpecial

Cells(1, 1).Select

ActiveCell.End(xlDown).Select

iRow = ActiveCell.Row + 1



For x = 1001 To 2000

If .Range("B" & x) <> "GIRO" And .Range("B" & x) <> "" Then



.Range("A" & iRow) = .Range("B" & x) 'check #

.Range("B" & iRow) = .Range("E" & x) 'Ck Amt


End If
iRow = iRow + 1
Next
Oct 25 '07 #1
0 755

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Lauren Wilson | last post by:
I'd like to hear from anyone who has used any of the products from FMS at www.fmsinc.com. Just curious about your experience with these products.
5
by: Fernando Lopes | last post by:
Hi. I want to show an image in a requiredfield validator instead of "*". So, I 'm set the requiredfieldvalidator attributes like following: <asp:RequiredFieldValidator id=rfvFirstName...
5
by: Gustavo De la Espriella | last post by:
I'm refrasing a question I posted earlier because I didn't explain myself. I need an efficient way to make an especific comercial application able to use whatever database the client prefers a...
5
by: chrisfarscape | last post by:
I am having a problem getting my visual studio to recognize my option buttons within a table control. When I place <asp:TableCell> <asp:RadioButton id”test1” Text=”Test”...
1
by: Rena | last post by:
Hi all, What should i do if i need to have a customized form authentication? I used authentication mode as form, and I disable anonymous access of the web application in order to make it work. It...
1
by: Jorge Ribeiro | last post by:
Hello I've an ASP.NET Web application that has one form where the user can upload a file to be sent and saved on a database. The app sends the file via DIME attachments and SOAP envelopes to a...
5
by: Mark Jerde | last post by:
Can someone recommend a commercial error handling package I can add to my C# programs? (VS .NET 2003.) I'm not finding any googling. I know I could write my own or adapt something off the...
2
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this...
14
by: sukitmw | last post by:
Hi, I'm trying to do a series of data extraction from all the sheets(Sheets A to Z) in a workbook and put the results into the first worksheet(sheet1) of this workbook. I've nested a sub within...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.