Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Counting Columns
Resolved · Low Priority · Version 2003
Charlene has attended:
Excel VBA Intro Intermediate course
How would you count up to the last column?
Hi Charlene
In VBA if you have a range/table of data and need to know the number of columns you do the following:
1. Create a Variable to hold the number of columns value
2. Select a cell in the range
3. Use code to count the columns and save the answer in the variable. For example:
Sub NumberOfColumns()
Dim NumOfColumns As Integer
Sheets(
Mon 15 Dec 2008: Automatically marked as resolved.
|
Excel tip:Display pictures on Chart Data PointReplacing a single chart data point bar with a picture. |
We'll call during UK business hours
Server loaded in 0.08 secs.