Solved

VB error "Type mismatch"

Posted on 2016-09-13
2
42 Views
Last Modified: 2016-09-13
Hi Guys, I am getting type Mismatch in the last line below for this VB Code. Any ideas why?

Dim wb As Workbook
Set wb = ThisWorkbook


    Workbooks.Open filename:= _
        "O:\PRODUCT CONTROL\London P&L\GM_London_PnL_20160912.xlsm"
    Range("D83:D84").Select
    Selection.Copy

    Windows(wb).Select
0
Comment
Question by:JCutcliffe
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41795902
Hi,

pls try

wb.Activate

Regards
0
 

Author Closing Comment

by:JCutcliffe
ID: 41795938
excellent
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now