98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Refer to data that has been named - define | Excel forum
Refer to data that has been named - define | Excel forum
Resolved · Low Priority · Version Standard
Rebecca has attended:
Excel Advanced course
Refer to data that has been named - define
I have a large file that has been segmented into areas that are given specific names. (In this case each section is divided into months.)
I have defined the names by going into Insert, Name, Define. I am now writing a code that refers to column 5 in each segmented month. I am trying to refer to the range by the Name i have inserted and then by offseting to column 5, however I cannot seem to write the code correctly
Can you help
Many thanks
Becky
RE: Refer to data that has been named - define
Hi Rebecca
Thank you for your question
There are a number of approaches here, depending on what you want to achieve although in general they all use the cells property of the range object
1. To select the column header cell
Range("Sales").Cells(1, 5).Select
The above code selects the cell on the first row and fifth column of the range
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Use the Format Painter to copy formatting more than once in ExcelThe format painter tool provides a quick and easy way to copy formatting from one cell to another in Word. |