within my vba, i have a line that inserts a formula into a cell which looks like this and works
my question is,PHP Code:
Range("b25").Formula = "=IF('Times!f29="""","""",'Times'!f29)"
instead of adding another line with similar formula, how would i do a fill series horizontally without writing it as follows
i was thinking about adding a col, row and a loop to do a column=column+1 so it keeps going until reaching cell at25 but dont know how to write it and will keep trying until one of you brainy people tell me.. lolPHP Code:
Range("b25").Formula = "=IF('Times!f29="""","""",'Times'!f29)"
Range("c25").Formula = "=IF('Times!g29="""","""",'Times'!g29)"
Range("d25").Formula = "=IF('Times!h29="""","""",'Times'!h29)"
please note the f29 value also increments
Bookmarks