copy and paste defined
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » Copy and paste at a defined line (inputbox?)

Copy and paste at a defined line (inputbox?)

The UK's most regular instructor-led training courses.
Training information: excel word powerpoint courses london · Excel/courses/london · VBA courses London

resolvedResolved · Medium Priority · Version 2003

Copy and paste at a defined line (inputbox?)

Peter has attended:
No courses

by - delegate Peter [2 posts] (2008 Jul 27 Sun, 18:55) replyReply

Hello everybody. I am real beginner under VBA...
Here is my problem:

A B C D G H I
line Date Name Value
1 Paul Today Paul 20 000
2 1/07 10 000 Roddy 15 000
3 2/07 15 000
4 3/07 17 000
5 4/07
6 5/07
7 Roddy
8 1/07 8 000
9 2/07 10 000
10 3/07 13 000
11 4/07
12 5/07

Everydays, values in I are updated with a Vlookup, and I copy and pastevalue these figures in D column. If today we are the 4/07, so I would copy 20 000 in D5 and 15 000 in D11.
Problem is that I have actually more than 100 names...

I'm thinking of a solution that can automaticly copy the values in I in appropriate correct sheets with a VB code.

Note that there are always the same numbers on lines (6)between where I want to paste each figure (if I copy 20 000 in D5, then I would copy 15 000 in D5+6 = D11, then in D11+6=D17 etc
What I am thinking is a input box which would ask me: "which lines to you want to start pasting?"
If I say: line "5", then it copies I2 in D5, I3 in D5+6=D11 etc
Tomorow, with new values in I, I will say: start in line "6", then it will copy I2 in D6, I3 in D6+6=D12 etc...

I think an input box would be the best option, but I am not sure about that. Don't hesitate to ask me to clarify if need be.
Many thanks for your help :-)

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Dec 8 Mon Bayswater 2 book now £224 £224
2007 2008 Dec 9 Tue Bloomsbury 0 FULL    
2002/XP 2008 Dec 9 Tue Tooting 0 FULL    
2003 2008 Dec 11 Thu Southwark 7 book now £188 £215
2007 2008 Dec 16 Tue Bayswater 6 book now £207 £215
2002/XP 2008 Dec 16 Tue Tooting 0 FULL    
Full Schedule: See all 108 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: Copy and paste at a defined line (inputbox?)

by - delegate Peter [2 posts] (2008 Jul 27 Sun, 19:13) replyReply

lets see if it works:

http://img387.imageshack.us/my.php?image=vbqu2.png


Related articles

· Advanced Excel and PivotTable Reports
· 3 Ways that MS Excel Courses Can Drastically Improve Productivity for Teachers
· Compare Different MS Excel Training Methods
· Excel in the Home Office
· How to Create Better Excel Spreadsheets: Part Three

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

Excel tip:

Select blank cells automatically

Get Excel to find any blank (empty) cells in a region for you by:

1. Selecting the appropriate region from your spreadsheet.

2. On the menu bar, go to Edit - Go to.

3. Click the 'Special' button, then select Blanks and click OK.

View all Excel hints and tips

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

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

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

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz