Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Placing a regular excel function in VBA code [HOW?]
Hi everyone.
Im sorry but Im totally illiterate in VBA and have very little experience in macro (hours only ;). I recorded a macro containing the following code: Sub Macro4() ActiveSheet.PageSetup.PrintArea = "$A$1:$E$34" End Sub What I would like to accomplish is to change "$E$34" into a regular Excel function: ="$E$" & (MATCH ("abc";A1:A40)) (the function looks for "abc" text in A column and returns the address of the cell in E column in the same row) Could someone tell me how it can be done? I was looking in Google for a while but without success. Thanks in advance, gordom |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert a julian gregorian date code into a regular date | Excel Worksheet Functions | |||
regular code module | Excel Discussion (Misc queries) | |||
Placing a Return in a Function | Excel Discussion (Misc queries) | |||
placing NOW function in IF function | Excel Worksheet Functions | |||
possibility of automatically placing an autoshape using a function | Excel Programming |