Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel visual basic

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel Visual Basic

Excel Visual Basic

ResolvedVersion Standard

Xavier has attended:
Excel VBA Intro Intermediate course
Excel Advanced - Formulas & Functions course
PowerPoint Intermediate Advanced course

Excel Visual Basic

Why Range uses "" and cells does not?

e.g. Range("A1")

Edited on Tue 19 Feb 2008, 15:59

RE: Excel Visual Basic

Hi Xavier

In Excel it is possible to name Ranges so when you refer to a range in VBA you do so using a string:

If you had named "A1" as "VAT" then in the VBA code you could either write

Range("A1") Or Range("VAT") as they would refer to the same cell

When using the Cells, this refers to the numeric co-ordinates of the cell's position on the worksheet

Cells(Row , Column)

So that Range ("A1") is Row 1, Column 1 which gives us

Cells (1,1)

Hope this helps

Carlos

Excel tip:

Display pictures on Chart Data Point

Replacing a single chart data point bar with a picture.
Step 1: Left click on a bar. Then, wait, and do a second single click on the bar. This will select just one data point.

Step 2: Right click on the bar and select Format Data Point.

Step 3: On the fill effects tab, choose a picture. Browse for a picture for that bar. Indicate if you want it to be stretched or stacked. Repeat for each bar.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.