cells30

  1. C

    Getting the formula in this For loop to include the current column(colnum)

    This code Dim X As Range Sheets("Budget").Select For i = colnum + 1 To 54 Cells(30, i).Value = Cells(30, i - 1).Value - Cells(18, i).Value If Cells(30, i) = 0 Then MsgBox "Balance is 0 at col " & i & " " & " and week " & Cells(2, i) Range(Cells(30, i...
  2. C

    Combining results of two textbox values into one textbox...

    This code works perfectly Private Sub UserForm_Initialize() Dim x As Range Application.EnableEvents = False Application.ScreenUpdating = False Sheets("Budget").Select For i = colnum + 1 To 54 Cells(30, i).Value = Cells(30, i - 1).Value - Cells(18, i).Value If Cells(30, i)...
  3. C

    Getting a For Loop to work correctly on a range...

    This works correctly… For i = colnum + 1 To 105 Cells(30, i).Value = Cells(30, i - 1).Value - Cells(18, i).Value Next ...but this code performs the calculation all the way out to col 105 even if there are no values in cells(30,i) and cells(18,i) when this is not necessary and and...
  4. B

    VBA: Change VBA script cell reference

    Hi, i have the following Sub InsertNewBill_Click() Dim rngCopy As Range Dim rngPaste As Range Dim clearCell As Range If i < 31 Then i = 31 Cells(30, 1) = i i = Cells(30, 1) + 1 Cells(30, 1) = i Else i = Cells(30, 1) + 1 Cells(30, 1) = i End If ActiveSheet.Range("A" & i &...

Some videos you may like

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top