borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (saving files using macro)Next Topic (daily function) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA Row Number
Poster Message
bzy180
Level: Trainee

Registered: 26-02-2009
Posts: 1

icon VBA Row Number

I work for a company with a number of distribution centers (DC's) in different cities. When we add a new DC or division all the row numbers change. I then do a match to find the new row numbers. Is there a way to highlight the range B2 to B5 and change the row numbers based on the match formula in C2 to C5.

               Row      
=City!B3      1        
=City!B1      2
=City!B4      3
=City!B2      4

End Result
=City!B1
=City!B2
=City!B3
=City!B4
The formula will remain in B2 to B5.

Sean

26-02-2009 at 03:07 AM
View Profile Send Email to User Show All Posts | Quote Reply
patkam
Level: Scholar

Registered: 19-04-2004
Posts: 36
icon Re: VBA Row Number

Sounds like you are asking how to use an Excel feature.

Highlight the rows to be sorted, use the Data Sort feature with sorting with "Row" as top priority, ascending order and that's it.

If this is not what you're after, please provide more details.

____________________________
Knowledge is there to share, not to hide!
-< PATKAM >-

14-04-2009 at 03:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : VBA Row Number
Previous Topic (saving files using macro)Next Topic (daily function) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder