![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Home
Posts: 6
|
what is the proper syntax to perform the following in an Excel Macro:
"For Each Cell in the selected range do this" thanks in advance! |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
The following example will make the value of each cell in a selection 1.
Sub Macro1() For Each cell In Selection cell.Value = 1 Next End Sub
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: Home
Posts: 6
|
thank you very much. I will give it a try
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|