white_flag
Active Member
- Joined
- Mar 17, 2010
- Messages
- 331
Hello I like to do somethnig like this via VBA:
so I like an code that will do this (create text in the following order):
AAbmk11, BBbmk11, CCbmk11 CCbmk12 CCbmk13 CCbmk14 CCbmk15 CCbmk16
AAbmk12, BBbmk12, CCbmk17 CCbmk18 CCbmk19 CCbmk20 CCbmk21 CCbmk22
AAbmk13, BBbmk13, CCbmk23 CCbmk24 CCbmk25 CCbmk26 CCbmk27 CCbmk28 etc
my not working logic is looking like this
so I like an code that will do this (create text in the following order):
AAbmk11, BBbmk11, CCbmk11 CCbmk12 CCbmk13 CCbmk14 CCbmk15 CCbmk16
AAbmk12, BBbmk12, CCbmk17 CCbmk18 CCbmk19 CCbmk20 CCbmk21 CCbmk22
AAbmk13, BBbmk13, CCbmk23 CCbmk24 CCbmk25 CCbmk26 CCbmk27 CCbmk28 etc
my not working logic is looking like this
Code:
For i = 11 To 20
Name:="AAbmk" & i
Name:="BBbmk" & i
For j = 1 To 16
Name:="CCbmk" & i + j - 1
Next
Next