You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Is it possible to reference a cell using a variable in it name
dim var1 as integer
var1=3
listbox1.additem([c var1])
What I'm trying to do is place the contents of cell c3 into a listbox by using a variable in it's call out. This is not exactly what I'm trying to do but it the simplest way I can think to explain it clearly.