+ Reply to Thread
Results 1 to 3 of 3

re-writing VBA Code

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    re-writing VBA Code

    Hi all,

    I came across a VBA code the other day that is exactly what I needed (I am new to writing VBA code!), however the code is quite extensive and is written for a spreadsheet where the clumns start B and row 5 but I want use for a spreadsheet that starts at A1. The code was written for worksheets 'Open' and 'Closed' but I want to use it for my spreadsheet, which contains the works 'Risk Framework' and 'Archived Risks'. I have included two spreadsheets. 'move rows' is where the code is and 'Risk Frame Register' is where I want the code to be.

    What I basically need is for the VBA code used on worksheets 'Open' and 'Closed' to also work on 'Risk Framework' and 'Archived Risks' as at the moment it is written with the 'Open' and 'Closed' worksheets and I can't (as hard as I've tried) been able to re-write the code for worksheets 'Risk Framework' and 'Archived Risks' because as you will see the tables are in different columns and cells. I don't need the code to work on all four work sheets just on Risk Framework and Archived Risks.

    The code is on worksheets 'Open' and 'Closed' and I want to use it for my worksheets 'Risk Framework' and 'Archived Risks'. Sorry if I sound confusing, let me know if you need me to clarify.

    Thanks in advance for all your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: re-writing VBA Code

    Try This:=
    Attached Files Attached Files
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: re-writing VBA Code

    Hi Mehmet, firstly thank you for your response. It's much appreciated.

    I don't know if I am doing something wrong but I am getting error '457' when I try and use the userform.

    Apologies, if I am doing something wrong.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Writing a Formula using R1C1 code in VBA code
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-15-2014, 11:06 AM
  2. Need Macro to Transfer Data from sheet 2 to sheet 1
    By STU22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2013, 03:09 PM
  3. New to VBA code writing
    By Justair07 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-08-2013, 07:38 PM
  4. Need Help on Writing a Code... Please
    By uu_urfriend in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2012, 09:34 PM
  5. writing VBA code
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2010, 03:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1