Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default problem with excel functions in vba

Hi

I have just been working on vba for the last 2 days only so please pardon my
lack of understanding of even the very basic terms

Basically, I have made an excel sheet where I have automated a process of
copying a specific range of rows from sheet 1 to different sheets using for
loop. everytime the loop finishes, it moves onto the next column to copy the
values again. This goes on when I press the start timer button

Ideally what I want to do is when I press the stop timer button, my code
should automatically move onto the next column and do a calculation
(variance) of all the previous column that was being copied before i pressed
the stop button.


Sub Insert_Formula()
Call IncrementCounter
For i = 3 To 53
If IsEmpty(Cells(i, GetCounter())) Then
Worksheets("USD").Cells(i, GetCounter()).Formula = "=VAR(B3:GetCounter-1)"
End If
Next i
End Sub

What I am doing is first incrementing my column and checking whether it is
empty.Counter is how I defined my columns as and I am very aware of the fact
that the way I have written the code above is not the way to do it. So could
you please tell me how to go about pursuing this?

Please tell me if you need more details to help me out. Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible problem with PMT and FV functions Keith Excel Worksheet Functions 2 March 13th 10 03:43 AM
Excel Functions Problem Confused Excel Worksheet Functions 3 February 15th 10 09:55 PM
Browser Functions Problem Jaemun Excel Programming 6 September 25th 07 10:23 PM
formatting problem with functions Robin M. Excel Worksheet Functions 4 October 9th 05 04:49 AM
Problem using VBA functions.... Richard Latter New Users to Excel 3 February 28th 05 06:08 PM


All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"