danelskibr
Board Regular
- Joined
- Dec 31, 2014
- Messages
- 58
Hello,
My goal is to run two sets of code that will format all of the sheets in my workbook in one of two ways. All the sheets are either formatted in style "A" or in style "B". One way to identify which type of style I am working with is to run the following:
If the result is true, then the sheet is Style A. If it is not true, then it is Style B.
Does anyone know of an effective way to accomplish this?
I am thinking it would look something like this:
If Sheet A, run formatting code for Sheet A style.
If not Sheet A, Run formatting code for Sheet B style.
Move to next sheet and repeat for the entire workbook
THANKS!
My goal is to run two sets of code that will format all of the sheets in my workbook in one of two ways. All the sheets are either formatted in style "A" or in style "B". One way to identify which type of style I am working with is to run the following:
Code:
If IsEmpty(Range("K3").Value) = True Then
If the result is true, then the sheet is Style A. If it is not true, then it is Style B.
Does anyone know of an effective way to accomplish this?
I am thinking it would look something like this:
If Sheet A, run formatting code for Sheet A style.
If not Sheet A, Run formatting code for Sheet B style.
Move to next sheet and repeat for the entire workbook
THANKS!