I have created an Excel report the obtains selected information from a SQL stored procedures based on parameters sent from cell values in the spreadsheet.
I have a section that will report the list of values from the stored procedure and then sum the values at the bottom of the section. The problem I am having is placing the output into the section and expand or shrink the area depending on the stored procedure output. One time the list can be 10 records another maybe 5.
If you're copying it via VBA, then it shouldn't be hard to note the size (row count) of the data to be copied and then adjust the size and position on the destination sheet. As noted by Anthony, sample
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables.
Make a table:
Update a specific column given a specific row using the UPDATE statement:
Remove a set of values using the DELETE s…