access vba courses - vba formula copying
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 Access VBA Training and help » access vba courses - VBA Formula copying

access vba courses - VBA Formula copying

The UK's most regular instructor-led training courses.
Training information: access vba courses · Access training · VBA training in London

resolvedResolved · Low Priority · Version Standard

VBA Formula copying

Rebecca has attended:
Excel Advanced course

by - delegate Rebecca [14 posts] (2007 Nov 21 Wed, 16:21) replyReply

I am trying to copy formula in VBA along 8 coulmns and 10 rows from the activecell.

The activecell is created from the formula finalrow = Cells(65536, 1).End(xlUp).Row - 80 because I am continully adding lines onto the worksheet and finalcolumns = Cells(8, 255).End(xlToLeft).Column

Instead of copying each line of formula and each column of formula, I woul like to know if there is a quicker way of creating a range. I have tried Range ("finalcolumn:finalrow") but this isn't right.

Can you please help

Many thanks

Becky

Access Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 2 Tue Southwark 3 book now £210 £215
2003 2008 Sep 9 Tue Bloomsbury 6 book now £193 £215
2002/XP 2008 Sep 11 Thu Tooting 0 FULL    
2003 2008 Sep 19 Fri Bayswater 5 book now £195 £205
2007 2008 Sep 23 Tue Bloomsbury 5 book now £212 £224
2002/XP 2008 Sep 24 Wed Tooting 0 FULL    
Full Schedule: See all 73 Access Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: VBA Formula copying

by - trainer Carlos gold contributer[391 posts] (2007 Nov 23 Fri, 15:21) replyReply

Rebecca

Try using the following to line of code to select the required range:

Range(Cells(StartRowVal,StartColVal), Cells(EndRowVal,EndColVal)).Select

If you are going to be reffering to this range multiple times you could create a variable for it as shown below.

Dim MyRange as Range

Set MyRange = Range(Cells(StartRowVal,StartColVal), Cells(EndRowVal,EndColVal))


Hope this helps

Carlos




Related articles

· Microsoft Access Mistakes to Avoid
· Quick Access Course: Creating a Customer Contact Database in 8 Simple Steps
· Access Database Optimization: First Normal Form
· MS Access Top Tips: Takeaways From Microsoft Access Advanced Training
· 3 Useful Things You'll Learn in Microsoft Access Training Courses

Access tip:

Remove spaces in a table

If you have a table that has too many space marks littered around, you can create a update query and use the trim function to get rid of any excess space marks

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

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
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