Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi all,
I am Radha krishna, I am having a doubt in Excel VBA programming. In our work we are doing formats such as Merging, row banding, Button creation, Print area setting, Hidding and deleting of rows and columns etc. At present we are doing that in a for loop by selecting each sheet at a time and applying all the formats and selecting the next sheet and do the same things. My doubt is whether Is there any way to do these common operations for all sheets at a time or not? If so Please help me. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Some things maybe, but maybe not all.
But is there a problem doing it the way that you do? -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Radhakrishna k.v.n.r" wrote in message ... Hi all, I am Radha krishna, I am having a doubt in Excel VBA programming. In our work we are doing formats such as Merging, row banding, Button creation, Print area setting, Hidding and deleting of rows and columns etc. At present we are doing that in a for loop by selecting each sheet at a time and applying all the formats and selecting the next sheet and do the same things. My doubt is whether Is there any way to do these common operations for all sheets at a time or not? If so Please help me. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Oct 17, 11:44 pm, Radhakrishna k.v.n.r
wrote: Hi all, I am Radha krishna, I am having a doubt in Excel VBA programming. In our work we are doing formats such as Merging, row banding, Button creation, Print area setting, Hidding and deleting of rows and columns etc. At present we are doing that in a for loop by selecting each sheet at a time and applying all the formats and selecting the next sheet and do the same things. My doubt is whether Is there any way to do these common operations for all sheets at a time or not? If so Please help me. Are you actually selecting the sheets within the For Loop? If so, that is not necessary. Also, if you are selecting the cells that you wish to format within the loop, that also is not necessary. You can use something like: Sub this() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets Range("A1:C1").MergeCells = True Columns(4).Font.Bold = True Range("C5").Interior.ColorIndex = 37 Next ws End Sub |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The problem is its taking more time.
"Bob Phillips" wrote: Some things maybe, but maybe not all. But is there a problem doing it the way that you do? -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Radhakrishna k.v.n.r" wrote in message ... Hi all, I am Radha krishna, I am having a doubt in Excel VBA programming. In our work we are doing formats such as Merging, row banding, Button creation, Print area setting, Hidding and deleting of rows and columns etc. At present we are doing that in a for loop by selecting each sheet at a time and applying all the formats and selecting the next sheet and do the same things. My doubt is whether Is there any way to do these common operations for all sheets at a time or not? If so Please help me. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formatting sheets | Excel Discussion (Misc queries) | |||
Time log adding time from separate sheets | New Users to Excel | |||
Formatting sheets | Excel Discussion (Misc queries) | |||
time formatting and time categorizing (vlookup or data validation) | Excel Worksheet Functions | |||
time formatting and time categorizing (vlookup or data validation) | Excel Worksheet Functions |