one for the office programmers out there
Discussion
ok, starter for 10 :
Ok, got a component wot i wrote in vb6 that spits data into excel ina nice pretty format for our VP's to um and ahh over. However, I'd like to get the columns to 'autofit' and I can't find the method to call in the excel object reference.
Anyone know what it is? Pint to the first correct response as you'll save me staying here and missing out on one tonight....
Ok, got a component wot i wrote in vb6 that spits data into excel ina nice pretty format for our VP's to um and ahh over. However, I'd like to get the columns to 'autofit' and I can't find the method to call in the excel object reference.
Anyone know what it is? Pint to the first correct response as you'll save me staying here and missing out on one tonight....
Plotloss said:
Something along the lines of:
Worksheets("Sheet1" ).Columns("A:I" ).AutoFit
It should be a method of the Columns collection.
>> Edited by Plotloss on Friday 20th May 16:46
Ahhh autofit - thats what it's called - nice one plotty, one beer owed
msdev ref here
>> Edited by mr_tony on Friday 20th May 18:27
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



