![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 37
|
Does anyone know if there is a way to spit out all the formatting and formula info for a row? What I would like to do is be able format an entire row on the fly if a user clicks on a row that is not formated.
thanks John |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Help...Oh! Help
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Your post isn't clear for me. Can you be a little more explicit ?
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Sure Juan,
I have a sheet that each row has formulas and formats that are constant. the only exception of course is referencing. I want to copy all the formating to VBA code, so I can make and add-in that will automatically format a header in the first row, and then format the second row with the above formulas and formats. Then I was thinking that after the initialization above, if a user clicks on a row that is not formated, excel would automatically format that row..like the first row...minus any data the user puts in. Is that possible? thanks John |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Well, one easy way.
Copy one "formatted" row into the new one. Then, delete all values (You can select special constants if you want to keep formulas) and you have a "clean" row. |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Thats the idea I have when I have at least one row like that...How do I copy all that formating to VBA so that a blank sheet can be initialized like that
|
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
That's the part that sucks. You can "record" a macro while you format each cell, but, there's no direct way of taking the formating. Something are just SO easy to do manually in Excel, but, yet, so long to do in VBA...
|
|
|
|
|
|
#8 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Thats what I was trying to avoid...Reformatting all that just to record a macro...LOL Thanks anyway juan. I wish there was a way to save a row as a formated code
|
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Can't you hide a preformatted row ? and then, you can copy THAT row...
|
|
|
|
|
|
#10 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Sure can, but thats square 2. Back at square 1, we have a blank sheet. The addin will take a blank sheet and format it with a header row and the next row with the formulas and formats I have tested in anotehr workbook. The idea is that when the addin is loaded, if the sheet is clean, format it like above, else do nothing to it.
Thanks |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|