+ Reply to Thread
Results 1 to 4 of 4

"Calling" a New Workbook in the code

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    "Calling" a New Workbook in the code

    I have the following... it works well.
    Please Login or Register  to view this content.
    What I need now is to "call" that same sheet to do the following:


    Please Login or Register  to view this content.
    "FName.xlsx" does not work... any ideas?

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

    Re: "Calling" a New Workbook in the code

    Try this...

    Windows(fName & ".xlsx").Activate


    Or

    Workbooks(fName & ".xlsx").Activate
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: "Calling" a New Workbook in the code

    Alpha Frog THANKS!!

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: "Calling" a New Workbook in the code

    you can also use a workbook variable
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  2. Activating unsaved open workbook using "if "name" like "name" satement
    By joshuarobbins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2015, 11:17 AM
  3. Replies: 2
    Last Post: 04-20-2014, 11:18 AM
  4. Replies: 3
    Last Post: 04-16-2014, 10:00 AM
  5. Replies: 1
    Last Post: 05-23-2013, 02:04 PM
  6. Replies: 6
    Last Post: 03-14-2012, 01:01 AM
  7. Macro Error with code "Range("A65536").End(xlUp).EntireRow.Insert"
    By lukasj13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2010, 08:48 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