Posts by Brand_New2VBA

    Re: Execute code based on specific text in target range of cells


    Hi Ed,

    Thanks so much for the information.

    Yes, I understood the codes you gave me, however I'm still trying to understand how to apply them properly.
    So far I've been getting alone quite well and these are the only issues left.
    Sheet 1= "Upcoming Workflow" tab
    Sheet 2= "Calendar"
    Sheet 3= "Future Workflow"
    Sheet 4= "2011 Published Workflow"

    On Sheet 1 I have 3 main buttons. Right now the only issue I have is the "Published Workflow" button. I need the information that is cut from column C to be pasted into Sheet 4 under its respective month (according to the intended publication date"). Also I'd like --on sheet 3--for the information copied from column 3 to be pasted in sheet 1 under their respective month.

    Is there a macro that can tell excel to paste the information being copied under the month indicated in the "intended publication date" queue?

    Re: Execute code based on specific text in target range of cells


    Hi Ed,

    Thanks so much for replying. Ive attached a sample of the project im working on.

    If--for instance-- on sheet 1 range b4:e4 has the word "published" written in it then i want the info in range c5:c10 to be copied into the next available queue on sheet 4 (under its respective month) and the whole range b4:e11 to be deleted and the next queue shifts up. all with the click of the published button.

    Here's the sample file
    forum.ozgrid.com/index.php?attachment/38373/

    Re: Designate copy and paste values to specific areas (indicated by name of column


    forum.ozgrid.com/index.php?attachment/38361/

    Hi,

    Thanks for responding. I've attached a sample file. Hope this makes things clear. I'd like information copied from the "Future Workflow" tab to be pasted in the "Upcoming Workflow" Tab according to the month placed in the intended publication date--in this instance May and June. So if someone were to add information in sheet 3 and indicated the intended publication date was 6/2, once the add to upcoming workflow button is hit, i'd like the info to populat the queues under the last entry in the month of june.

    Hope this helps. I'd really appreciate some feedback on this. Thanks so much in advance.

    Hi Guys,

    I need some help with this code. So far I got the values to paste after the last entry in the range, however I'd now like the the values to paste according to the month. for instance:

    May June July
    hat Cat Dog
    5/1 6/2 7/3

    I'd like the info from sheet 3 to be copied and pasted to its respective group. for instance:

    Jack
    6/2
    I'd like ths info to be copied and automatically pasted under the "June" group after the last entry for june.

    Is this possible?
    so far i have this code

    Code
    If Sheet1.Cells(Rows.Count, "c") = "" Then
        nextrow = Sheet1.Cells(Rows.Count, "C").End(xlUp).Row + 4
        If Sheet1.Cells(Rows.Count, "c") = "" Then
        nextrow = Sheet1.Cells(Rows.Count, "C").End(xlUp).Row + 3
        vntCloneValues = wksSource.Range("F15:F20").Value
        wksDestination.Range("C" & nextrow).Resize(UBound(vntCloneValues), 1) = vntCloneValues
        Erase vntCloneValues
         Sheet3.Range("F15:F20").ClearContents



    but it just pastes it into the listed range. The code does everything else right except for the most important thing.

    Any ideas???
    Can someone help me out with this?

    Hi Guys,

    I recorded a macro that cuts and pastes a specific region from sheet 1 to sheet 4. How do I now specify the code to only perform that function if the word "published" is in that specific region. This is the macro I have so far

    Code
    Range("B4:E11").Select
        Selection.Cut
        Sheets("2011 Publised Workflow").Select
        Range("B4").Select
        ActiveSheet.Paste
        Columns("B:B").EntireColumn.AutoFit
        Sheets("Upcoming Workflow").Select
        Selection.Delete Shift:=xlUp
    End Sub



    Also, how do I tell the macro to paste the information that has been cut under the data that was lasted pasted--rather than paste over the exisiting information.

    Can someone lead me in the right direction?

    Hi,

    I'm looking to write a code that cuts data from one sheet and pastes format into another. When data is pasted with formats included I want to have it pasted at the bottom of the last entry in the column? So far this is what I have



    Can someone help me perfect this code to make it do what is needed?

    Thank you!

    Hi All :smile:,

    Is there a macro that will allow me to copy and paste information from one sheet to the other into a speific area.

    So far I have the following code:


    However I would like the information that is copied to be placed in the last available queue in its respective column. The columns on my spreadsheet are arranged by date. So if the information that needs to be copied from sheet 3 to sheet one needs to go in the columns designated for "May" how would I be able to incorporate that into my codes? Is it possible?

    Also, is it possible to transfer a group of information (cut and paste rather than copy and paste) and have them show up in a separate sheet under its respective month? When the information is cut out of sheet 1--for example--is it possible for the rows to shift the information (if any) below the cut cells up?

    Your help would be greatly appreciated. Thank you in advance. :rose:

    Hi All,

    Attached is a project that I am working on. It is somewhat complete however there is a concern. The copy and paste formulas that I have written seem to take long to complete. If you hit the "Submit Workflow Detail" it seems as if the copying function searches through each field as opposed to only the fields that have been filled in. Is there a macro that will allow the copy and paste function to apply only to the fields with data? Although this will be an interactive spreadsheet that is frequently updated--I need the info to only copy the fields that have information in them.

    Can anyone help with this?


    forum.ozgrid.com/index.php?attachment/38256/

    Thank you in advance. :smile:

    Re: Sorting by date within a group of different ranges


    Hi Craig,

    Ok!

    Quick question:

    Should I just continune on with the code thread you created and add on for the rest of the fields in the file?

    I'd like the command to be applicable for all "Upcoming Workflow" qeues in each month.

    Should I start a new model for each moth or can I just add on?

    Also, I'd like each moth to be sorted seperately. Is there a way I can do that while working off the codes you added?

    Re: Sorting by date within a group of different ranges


    Hi Craig,

    The attachment is labeled Samples and is located at the top of my original post.

    Below, you will find the attachement.

    Please note the layout of the information. I want the text in column c to be arranged in groups by the "Intended Publication Date".

    When the "Sort by Publication Date" button is hit I want the information in range (C5:C10, C14:C19, C22:C27) to be arranged in a way that each "Upcomming Workflow" will be listed chronologically according the the "Intended Publication Date"--while the spaces in between each section continually observed.

    What do you think?

    forum.ozgrid.com/index.php?attachment/38233/

    Re: Sorting by date within a group of different ranges


    Hi Craig,

    Yes, the spaces in between are always the same.

    I'm brand spanking new to VBA so I'm not sure I understand how to load the data into a collection.

    Also, this is an interactive worksheet so the data will be updated and added to frequently. That is the main reason I wanted to create the sort by date button. So when the user adds new information to the button of the list they would just hit the sort button and the all the information (included the ones that have been recently added) will be chronologically sorted by the dates. When they are sorted the data will move as a group as opposed to individual cells.

    I took a look at the link and looks as if its directing me on how to sort a string of different words as opposed to different groups of data. each group contains 6 rows of cells and 2 rows in between each group.

    Can this be done Craig?

    forum.ozgrid.com/index.php?attachment/38219/

    (I've attached a sample of my file)

    Hello ozgrid family,:smile:

    I am brand spanking new to the world of excel VBA and I need your help. I started a project and so far I've been using previous posts and relies to help me along the way however it was difficult to find somehting regarding what is needed now.

    I am trying to creat a Button_Click macro that will sort the dates withing several different ranges. ex:

    Executive analysis report
    Robert Lee
    May 9

    REITs analysis
    John Doe
    Feb 7

    Marketing Strategy
    Mark White
    June 8

    KSX Monthly
    Joel Mann
    Feb 9

    I'm trying to have excel grab the each group and arrange them according to the date. So when the button is hit it would appear as follows:

    REITs analysis
    John Doe
    Feb 7

    KSX Monthly
    Joel Mann
    Feb 9

    Executive analysis report
    Robert Lee
    May 9

    Marketing Strategy
    Mark White
    June 8

    Also, how can I do this without disrupting my layout? there are several spaces between each group. I'd like the Sort by Publication date to be able to rearrange the information so each Upcoming Workflow detail will be in chronological order according to the intended publication date.

    May
    Upcoming Workflow:
    Company/Report:Executive Analysis
    ReportType:InitiationAnalyst:Rob Lee
    Submitted to SAs:1-May
    Intended Publication Date:9-May
    SA:Kristin

    May
    Upcoming Workflow:
    Company/Report:Marketing Strategy
    Type:Initiation
    Analyst:Mark White
    Submitted to SAs:1-June
    Intended Publication Date:9-June
    SA:Kristin

    If you guys can help me I'd greatly appreciate it. Thanks a bunch in advance!:rose: