Got a question ladies and gents.
Been writing a macro for a colleague to extract BUS data and display onto an excel template...
Eventuallly got there and now decided to make an executable out of it..
YEs i have included the Excel references and everything works, though painfully slow compared to the macro
except the adding of textboxes oif varying dimensions..
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 351.75 + (Byte_Data(Counter, reference, 1) * Template_Width_PerByte), 170.25 + (Counter * Template_Height_PerRow), (Byte_Data(Counter, reference, 0) * Template_Width_PerByte), (Template_Height_PerRow)).Select
I'm getting error 1004 - value out of range!!
Admittedly the code is obscure, but any ideas why it would work in a macro and not as an executable??
Regards
Peter I
Been writing a macro for a colleague to extract BUS data and display onto an excel template...
Eventuallly got there and now decided to make an executable out of it..
YEs i have included the Excel references and everything works, though painfully slow compared to the macro
except the adding of textboxes oif varying dimensions..
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 351.75 + (Byte_Data(Counter, reference, 1) * Template_Width_PerByte), 170.25 + (Counter * Template_Height_PerRow), (Byte_Data(Counter, reference, 0) * Template_Width_PerByte), (Template_Height_PerRow)).Select
I'm getting error 1004 - value out of range!!
Admittedly the code is obscure, but any ideas why it would work in a macro and not as an executable??
Regards
Peter I