copying records
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page

view a printable version of this pagePrintable version
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » Copying Records

Copying Records

The UK's most regular instructor-led training courses.
Training information: excel consultancy · Excel/courses/london · Microsoft Office VBA training

resolvedResolved · High Priority · Version 2007

No ranking yet
2 posts
replyReplyWed 10 Feb 2010, 16:06Delegate Lee said...

Lee has attended:
Excel VBA Intro Intermediate course

Copying Records

Is it possible for the content of a cell to be copied if the value of the cell is greater than zero ?

we created a code that had the following to copy the data in the cell if the salesperson name matched strName

If Sheets("Total Sales").Range("a10").Cells(introwcount, 10).Value = strName Then

Can the last bit be changed to somehting like this

If Sheets("Total Sales").Range("a10").Cells(introwcount, 10).Value = > 0

to copy all the content when the value of the cell is greater than zero

The code i have given below still copies all records even when there is a "0" in the reference cell.

Thanks
Lee

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate (£) List
price
Pay by
Card
Pay by
Invoice
2007 Mon 2 Aug 2010 Southwark 3 Book now £240 £245£245
2003 Thu 5 Aug 2010 Southwark 4 Book now £240 £245£245
2010 Fri 6 Aug 2010 Bloomsbury 0 FULL    £299
2007 Tue 10 Aug 2010 Bloomsbury 0 FULL    £245
2003 Tue 10 Aug 2010 Limehouse 5 Book now £235 £240£245
2007 Fri 13 Aug 2010 Limehouse 8 Book now £229 £234£245
Full Schedule: See all 134 Excel Advanced course dates.
Bookings currently available until 28th September 2011.

Platinum
825 posts
replyReplyFri 12 Feb 2010, 16:39Trainer Stephen said...

RE: Copying Records

Hi Lee

Thanks for your question

your code

If Sheets("Total Sales").Range("a10").Cells(introwcount, 10).Value = > 0

Is copying it if it is greater than OR equal to 0

Try

If Sheets("Total Sales").Range("a10").Cells(introwcount, 10).Value > 0

(without the = )

Instead

Regards

Stephen



Related articles

· Excel Course Tips and Tricks to Liven Up Your Excel Spreadsheets
· Business Forecasting With Microsoft Excel
· The Pursuit of Excellence
· Using Excel In Any Condition
· Using The Drawing Toolbar In Excel

Please browse our web site to find out more about
excel consultancy and other Microsoft training courses.

Excel tip:

Outlining - Grouping rows or columns

Highlight want you want to group and press ALT + SHIFT + left cursor arrow

View all Excel hints and tips


Rate this page:
2.2/5 (127 votes cast)
Institute of IT Training - Accredited Training Provider ILM
Microsoft Certified Partner
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Association of Computer Trainers verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Professional & Management

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

MS Office & IT Applications

Excel courses
Excel training
Excel Training Courses Medway
Microsoft Excel training
Microsoft Project training
Microsoft Office training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
(more...)

Crystal Reports training

DreamWeaver courses
Dreamweaver training

Training Information

London Computer Training
Computer Training London

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Information
Training Articles
Microsoft Training Blog

Interested in Access training?
Please see the following pages:

Access courses
Access training
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london