Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi,
there are many, depending what version you use, follow this link http://spreadsheetpage.com/index.php/books http://www.amazon.com/s/ref=ntt_at_e...n%20Walkenbach -- isabelle |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Isabelle,
OK, it figures that as soon as I declare something working ... it stops working. When I run the macro, I get the following error: Run-time error '1004' Application-defined or object defined error When I click on the Debug button, the Visual Basic editor highlights the following line: y = Application.Substitute(x, .Range("Current_Function"), .Range("Selected_Function")) Any ideas ? - Ronald K. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi,
on which excel version are you working ? can you show your code ? -- isabelle Le 2011-07-26 16:57, kittronald a écrit : Isabelle, OK, it figures that as soon as I declare something working ... it stops working. When I run the macro, I get the following error: Run-time error '1004' Application-defined or object defined error When I click on the Debug button, the Visual Basic editor highlights the following line: y = Application.Substitute(x, .Range("Current_Function"), .Range("Selected_Function")) Any ideas ? - Ronald K. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Isabelle,
I'm using Excel 2007 SP2. Sub Macro_Change_Function() ' ' Macro_Change_Function Macro ' ' With Sheets("Data") x = .Range("First_Data_Cell").Formula y = Application.Substitute(x, .Range("Current_Function"), .Range("Selected_Function")) .Range("First_Data_Cell").Formula = y End With Application.Goto Reference:="First_Data_Cell" Range(Selection, Selection.End(xlToRight)).Select Selection.FillRight Selection.SpecialCells(xlCellTypeLastCell).Select Selection.FillDown End Sub Changes I made: 1) Changed the worksheet name from Sheet1 to Data 2) Changed the name "First_Cell" to "First_Data_Cell" 3) Added VBA code for filling right and down - Ronald K |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
did you put on one line ?
y = Application.Substitute(x, .Range("Current_Function"), .Range("Selected_Function")) -- isabelle |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Isabelle,
Yes, but the line got wrapped when I pasted it in the posting above. - Ronald K. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi Ronald,
ok, i had tried to reproduce the bug but i was not able, i prepared a littel file. can you tell me if there the same problem http://cjoint.com/?AGBdlOkiKEu -- isabelle Le 2011-07-26 19:43, kittronald a écrit : Isabelle, Yes, but the line got wrapped when I pasted it in the posting above. - Ronald K. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Searching for text | Excel Worksheet Functions | |||
Formula for searching for a text string | Excel Discussion (Misc queries) | |||
Searching for text | Excel Discussion (Misc queries) | |||
help searching text | Excel Discussion (Misc queries) | |||
Searching for text in cells | Excel Discussion (Misc queries) |