1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

adding a new column and calculating a date

Discussion in 'Business Applications' started by cdwatts, Feb 14, 2005.

Thread Status:
Not open for further replies.
  1. cdwatts

    cdwatts Thread Starter

    Joined:
    Feb 14, 2005
    Messages:
    1
    I have created a macro that filters information and have created a submacro that updates information after the macro runs. Here is the submacro:

    Sub macro1()
    For MY_ROWS = Range("L65536").End(xlUp).Row To 1 Step -1
    If Range("L" & MY_ROWS).Value = "CANCEL" Or IsDate(Range("L" & MY_ROWS)) Then
    Rows(MY_ROWS).Hidden = True
    End If
    If Range("L" & MY_ROWS).Value = "N/A" Or IsDate(Range("L" & MY_ROWS)) Then
    Rows(MY_ROWS).Hidden = True
    End If
    Next MY_ROWS
    End Sub

    What I need now is to add a column in front of A1 and calculate a new date, which would be the date in column L minus two days. Is this possible or would I need to have column A blank 1st rather than inserting a new column? By the way, column A already has data.

    Thanks for your help.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/330354

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice