+ Reply to Thread
Results 1 to 4 of 4

Retrieve and Update Files

Hybrid View

emmieshane Retrieve and Update Files 12-31-2018, 03:24 AM
Richard Buttrey Re: Retrieve and Update Files 12-31-2018, 04:50 AM
emmieshane Re: Retrieve and Update Files 12-31-2018, 06:08 AM
Richard Buttrey Re: Retrieve and Update Files 12-31-2018, 07:08 AM
  1. #1
    Registered User
    Join Date
    07-07-2017
    Location
    Manila, Philippines
    MS-Off Ver
    MS Office 2010
    Posts
    18

    Re: Retrieve and Update Files

    Hi Richard,

    The retrieve and update command buttons are not working. I'm thinking it's because I'm using a wrong reference number to retrieve my files. What I want to do is, when I type in the record number in cell A1, the corresponding file on the Database will auto populate on the Form.

    Thanks,

    Emmieshane

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Retrieve and Update Files

    The first lines in Private Sub Retrieve_Click() macro should be

    Dim Rowcount2 As Long
        Rowcount2 = Sheet1.Range("A1").Value
    It's always good practice to Dim Variables first, and refer to sheets with their VBA code name not tab name

    Your code would have worked had you used

    Rowcount2 = Sheets("Form").Range("A1").Value
    but as I said use the sheet codename, the tab name is too easily changed by the user and a macro that uses it will fall over.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Google calender retrive and update via macro.
    By hmaleki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2015, 08:38 AM
  2. update master files from multiple children files
    By natalie.phuong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2009, 03:34 AM
  3. 2 files, mass update comments between files
    By Katycatchesnut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. 2 files, mass update comments between files
    By Katycatchesnut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. 2 files, mass update comments between files
    By Katycatchesnut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. 2 files, mass update comments between files
    By Katycatchesnut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. 2 files, mass update comments between files
    By Katycatchesnut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-02-2005, 06:05 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