Hello all
I'm writing a macro to create and populate a bunch of forms using data from a seperate spreadsheet.
It's all working as it should except for the line of code that actually populates the cells in the newly created form.
Here is an example
Range("A21").Select
ActiveCell.FormulaR1C1 = Sheets("data").Range("GY" & LIIS_Number)
Whats vexing me is that this formula works for some of the cells but not others. I've got a Do loop running to create multiple forms and the first form comes out fine, the second gets stuck and the only thing I can see that might be causing the error is that the second form contains a cell with over 170 characters while the first form only holds cells below 140 characters. I'm not even sure if this is an issue.
So my question. What might cause that piece of code up there to not work at what is supposed to be doing? Could format or the cell contents be the problem? Is there a better way to populate the form (i could try and do the copy/paste method but is there a better way?)?
Bookmarks