Concatenating two cell addresses
Posted by Edward C. on April 10, 2001 6:41 AM
Hi,
I am writting a routine to generate some plots, and as part of that, I need to be able to first automatically identify the min and max value to plot over the x-axis.
I have written a routine using Find that tells me based on one column of data where the plot should begin. However, this column of data is in column BR503, and I need to grab the text from column A503 in order to us is as the min value for my chart's x-axis. I have pasted the code below that I am using. I have the first part which find's the row# in BR where I want to start plotting. Also, I have the next two lines which were my attempt to take the address found in the above Find statement and concatenate that with column A to get the text out of cell A503.
I know what I did wrong, but I don't know how to fix it. Before I can concatenate BR503 and A, I have to remove the BR so I get A503 and not ABR503.
If anyone knows how to do this, or knows of a better way to do what I need. Please let me know. Any help would be greatly appreciated.
Thanks
Edward
Set s100F = Worksheet("Veh1_NY_20010321_1957").Columns("BR"). _
Find(what:="100")
txtStep3min.Text = Range("A" & s100F.Address).Text
txtStep3min.Text = Selection.Text