formularc notation help
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
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » FormulaR1C1 notation help

FormulaR1C1 notation help

resolvedResolved · High Priority · Version 2007

replyReplyWed 3 Dec 2008, 10:28Delegate Andrew said...

FormulaR1C1 notation help

Hi all,

I was wondering how in VBA where we have the FormulaR1C1 notation as:

activecell.FormulaR1C1 = "=SUM(RC[+1]:RC[+3])"

If how many rows/columns back I want to go is variable, how can I set the +1 and +3 values to some variable integer?

For upcoming training course dates see: Pricing & availability

replyReplyWed 21 Jan 2009, 13:49 Edited on Wed 21 Jan 2009, 13:50Trainer Laura said...

RE: FormulaR1C1 notation help

Hi Andrew

Thank you for your question regarding using FormuaR1C1.

The FormulaR1C1 property is a string so to use variables for the column offset in the formula you would need to add the different pieces of the string together using &.

Using your example and two integer variables iColOffset1 and iColOffset2 the code would change to

     ActiveCell.FormulaR1C1 = "=SUM(RC[+" & iColOffset1 & "]:RC[+" & iColOffset2 & "])"


I hope that helps.

Please let me know how you get on.


Laura GB

Tue 27 Jan 2009: Automatically marked as resolved.

 

 

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

Excel tip:

Highlighting a data range

Attempting to use a mouse to highlight a large range of cells with data in Excel can make the mouse to have a life of it's own!

Use keyboard strokes instead.

Step 1. Place the cusor in the cell where the highlighting should begin.

Step 2. Select keystroke, CTRL+SHIFT+END

This will take the cursor to the furthermost bottom corner of the data range found in that worksheet. And highlight that range of cells at the same time




View all Excel hints and tips

article

Distance Learning Vs Face To Face Tuition

Over the years distance learning has become a popular and convenient way of studying for GCSE's, A Levels, professional qualifications and even degrees thanks to the introduction of web-based settings, applications and tools. But, can distance learning provide the same kind of learning experience as a classroom environment?

» Article: Training providers

forum postI have a form with a combo box to filter results in the inner form that i have generated from an sql statement but i do not thing the sql is correct it works but it comes up with a box asking for the data that i thought would come from the combo box, can ..

» Forum post: Inner forms

hint tip1.Select cell range containing data/figures
2. Press F11

» Tip: Generate simple column chart


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

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

Management training

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

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

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

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project 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
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

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

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training