M
Mike
I am trying to pull data from a monthly data sheet to a summary sheet using a
combo box. I have each month listed on a workbook data sheet for the combo
box on the summary sheet. What I am trying to do on the summary sheet is
pull the data for the month selected in the combo box. My function works
fine until I reach month 9. Is there a length limit to a funtion? I cell D6
in my Summary sheet I am tryng to enter the lengthy formula and if/when it
works, copy it down about 60 rows x 2 colums. The formula is:
=IF('Workbook Data'!$A$23=1,'Monthly Data'!C4,IF('Workbook
Data'!$A$23=2,'Monthly Data'!F4,IF('Workbook Data'!$A$23=3,'Monthly
Data'!I4,IF('Workbook Data'!$A$23=4,'Monthly Data'!L4,IF('Workbook
Data'!$A$23=5,'Monthly Data'!O4,IF('Workbook Data'!$A$23=6,'Monthly
Data'!R4,IF('Workbook Data'!$A$23=7,'Monthly Data'!U4,IF('Workbook
Data'!$A$23=8,'Monthly Data'!X4))))))))
As soon as I try to continue for A23=9, my error ocurrs. Any ideas? I
realize that this probably isn't the best way to do this, but I am fairly
novice and completely green in VBA.
combo box. I have each month listed on a workbook data sheet for the combo
box on the summary sheet. What I am trying to do on the summary sheet is
pull the data for the month selected in the combo box. My function works
fine until I reach month 9. Is there a length limit to a funtion? I cell D6
in my Summary sheet I am tryng to enter the lengthy formula and if/when it
works, copy it down about 60 rows x 2 colums. The formula is:
=IF('Workbook Data'!$A$23=1,'Monthly Data'!C4,IF('Workbook
Data'!$A$23=2,'Monthly Data'!F4,IF('Workbook Data'!$A$23=3,'Monthly
Data'!I4,IF('Workbook Data'!$A$23=4,'Monthly Data'!L4,IF('Workbook
Data'!$A$23=5,'Monthly Data'!O4,IF('Workbook Data'!$A$23=6,'Monthly
Data'!R4,IF('Workbook Data'!$A$23=7,'Monthly Data'!U4,IF('Workbook
Data'!$A$23=8,'Monthly Data'!X4))))))))
As soon as I try to continue for A23=9, my error ocurrs. Any ideas? I
realize that this probably isn't the best way to do this, but I am fairly
novice and completely green in VBA.