Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have recently started using VB for my excel sheet by recording a macro and manipulating the code. However, I'm stuck with a problem which I am hoping someone will be able to help me with. In my macro, I insert a column and then a formula on the first line. Then I double click on the right hand side of my cell which copies the formula to the bottom of all my records. However, when i look at the coding it put the copying as an absolute value ie. F2:F2555. As my data is being pulled through a ODBC link and is dependant on the date field (the user can enter a date range for the report) the number of records it will bring up will be different every time. Is there anyway, I can change the code so it copies the formula to all records no matter how many there are. I do not want the formula to be copied into cells with empty records as I will be using the info to create a pivot table afterwards. Any help will be much appreciated. Thanks B |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Code to conditional format all black after date specified in code? | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
copying vba code to a standard code module | Excel Discussion (Misc queries) | |||
VBA code delete code but ask for password and unlock VBA protection | Excel Programming |