B
Bommel
i want to change a cell within a function. here is a sample function:
public function test(result as variant) as variant
Cells(1, 2).value = "whatever text i want"
test = result
end function
when i have this function and then write the following formula into a cell,
it does not work: =test("justsometext")
information why i want functions to change cells, and not just some
usercontrolls: I want to show all informations from all lists i have on a
single sheet, so when i print it i only need to print only 1 page where all
my informations i need summarized. problem is: the lenght of the lists and
thus the space they take on that page vary very much. in excel i can only
give them a fixed amount of space usually, so i would need about 3 pages for
all lists instead of 1. thats where my functions would come in: i would
create a function for every list i have, that fills the cells below it with a
list, notice where the list's end is and then place the next function (and
thus the next list) after the last entry of it own list.
public function test(result as variant) as variant
Cells(1, 2).value = "whatever text i want"
test = result
end function
when i have this function and then write the following formula into a cell,
it does not work: =test("justsometext")
information why i want functions to change cells, and not just some
usercontrolls: I want to show all informations from all lists i have on a
single sheet, so when i print it i only need to print only 1 page where all
my informations i need summarized. problem is: the lenght of the lists and
thus the space they take on that page vary very much. in excel i can only
give them a fixed amount of space usually, so i would need about 3 pages for
all lists instead of 1. thats where my functions would come in: i would
create a function for every list i have, that fills the cells below it with a
list, notice where the list's end is and then place the next function (and
thus the next list) after the last entry of it own list.