+ Reply to Thread
Results 1 to 2 of 2

Updating excel range with dynamic price data

Hybrid View

  1. #1
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Updating excel range with dynamic price data

    You can try to use this code:
    Private Sub Macro1()
       Dim myRow As Long, lastRow As Long
       
       lastRow = Cells(Rows.Count, "a").End(xlUp).Row
       
       If lastRow > 9 Then
          For r = 2 To 10
             Cells(r - 1, "a") = Cells(r, "a")
          Next r
          myRow = 10
       Else
          If Cells(1, "a") = "" Then
             myRow = 1
          Else
             myRow = lastRow + 1
          End If
       End If
       Cells(myRow, "a") = bid_price 'new entry
    End Sub
    Regards,
    Antonio
    Last edited by antoka05; 05-06-2009 at 09:21 AM.

+ 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