+ Reply to Thread
Results 1 to 3 of 3

Declaring Variables of Active sheet and another opened through FileDialog.

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Declaring Variables of Active sheet and another opened through FileDialog.

    This previously posted under “FileDialogPicker” tread title, not marked that as solved due to my inability to Declare the Variables
    of the two Workbooks in question and complete the code to test it. Could someone be so kind as to have a look the Declared or
    not so Declared Variables for me and put me right? Then I can mark both as solved.

    The more I have read and studied examples the more confused I have become!!!

    Many thanks

    julhs


    http://www.excelforum.com/excel-prog...html?p=3142183
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Declaring Variables of Active sheet and another opened through FileDialog.

    Try this...

    Please Login or Register  to view this content.

    You may find this helpful:
    10 ways to reference Excel workbooks and sheets using VBA

  3. #3
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Declaring Variables of Active sheet and another opened through FileDialog.

    AlpaFrog

    I think my principle mistake was I was declaring the variables for the source and destination sheets by the wrong names
    outside of the sub routine “Paste to Sheet”. Although not evident from the uploaded example as that was the edited version.

    I WILL read the links you sent and I WILL endeavour to get my head around how and where to Declare Variables.

    Many thanks for your help

    julhs

+ 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