+ Reply to Thread
Results 1 to 2 of 2

Visual Basic for copy and paste columns

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    23

    Visual Basic for copy and paste columns

    Hi,

    I have an excel sheet which has a column (say column H) which has a list of about 20 number in it. This column updates when I refresh a query from a database connection.

    So, here's what I would like to do. The refreshed data in H represents the "Current Position" so each time I refresh this I first need to copy the values for the relevant date (i.e the date I last refreshed the query) in to another column which is headed with the relevant date.

    Then I can take the difference between H and my historic position and I have the movement over the time period.

    Basically, I want to say, in crude terms, Select, Copy and Paste Values of Columns H in to the Column which is headed with the date that the data was last refreshed. If that makes sense...

    I hope someone can help me!!

    Many thanks

    Rob

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Updating Column Data

    Hi

    The following code will update as required, just substitute the actual ranges required.
    Please Login or Register  to view this content.
    Regards

    Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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