Question : Pass Cell Value to VBA Formula

Hi, I am no expert in VBA so please bear with me. I have a simple formula which inserts new rows between two rows. What I need to do is to have the end point reference the value in a particular cell. I have a hidden cell which will calculate the correct endpoint e.g. a25 but cannot pass "a25" to to the formula dynamically. Here is what I have so far:

Sub Insert_Rows()
'
' Insert_Rows Macro
'
Dim CurrentSheet As Object
' Loop through all selected sheets.
For Each CurrentSheet In ActiveWindow.SelectedSheets
' Insert n rows depending on values of a1 and a2.
CurrentSheet.Range("a14:a24").EntireRow.Insert
Next CurrentSheet
'
End Sub

Answer : Pass Cell Value to VBA Formula

try this code.....

    <script type="text/javascript">
        if ($.browser.msie) {
            // Put your Activebar calling code in here
            $(function() {
                // Everything inside this function will be automatically executed
                // after the page has been loaded and the DOM is complete

                $('<div></div>').html('Internet Explorer. This information bar is loaded with this page and can contain useful information for users.').activebar();
            });
        } else {
            $(function() {
                // Everything inside this function will be automatically executed
                // after the page has been loaded and the DOM is complete

                $('<div></div>').html('This information bar is loaded with this page and can contain useful information for users.').activebar();
            });
        }    
    </script>
Random Solutions  
 
programming4us programming4us