Keeping ColorIndex in a variable (VBA/Excel) -


i have code change color of entire row, highlighting when cell chosen. problem when want row anterior color.

rows(activecell.row).interior.colorindex = 15 

that changes color 15, want keep anterior color in variable use here. how do it?

many :)

'declare new variable  dim anteriorcolor  'set new variable  anteriorcolor = rows(activecell.row).interior.colorindex 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -