+ Reply to Thread
Results 1 to 4 of 4

Need to Paste Values from Formula into Columns with Different Numbers of Rows

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    2

    Need to Paste Values from Formula into Columns with Different Numbers of Rows

    Hello,

    I wrote/recorded this macro recently but there a few things I couldn't make it do that I wanted to. Also, I am sure that it could be improved by someone with more VBA knowledge than myself.

    Here are two things I really would like the macro to do:

    1) Instead of pasting the formula into cells O2:O30000, I would like to paste the formula into cells O2 until the last row of data. My files have anywhere from 100 records to 25,000 or so. I choose 30000 because I knew if would be long enough, but it is pasting formulas in cells where I don't want/need formulas...

    2) Instead of pasting formulas into cells O2:O30000, I would like to paste the value calculated be the formula.

    There is a third thing I would like the macro to do, although I am not sure it is as important as the first two.

    3) When I select the rows that say "Delete" in column O, I get an error message if there are no "Delete"s in that column. I made the error message say "No Records to Delete" which works, but I am wondering if there is a way to do this without getting an error message.

    Thanks in advance of anyone who can give me ANY help on this.

    Please Login or Register  to view this content.
    Last edited by VBAnewbie9314; 08-29-2014 at 08:46 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,636

    Re: Help Improve My Macro, Please

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,636

    Re: Help Improve My Macro, Please

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Registered User
    Join Date
    08-29-2014
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    2

    Re: Help Improve My Macro, Please

    Fixed. Thanks and sorry.

+ 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. [SOLVED] My refresh macro: Can it be improve?
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2013, 05:12 AM
  2. Improve macro
    By ngkj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2012, 02:25 AM
  3. Improve macro help
    By fullers in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2006, 06:00 AM
  4. [SOLVED] Help to improve macro
    By unni5959 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-19-2005, 07:05 PM
  5. [SOLVED] Can you help me to improve this macro?
    By Dario de Judicibus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2005, 07:05 AM

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