Solved

VB error "Type mismatch"

Posted on 2016-09-13
2
49 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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB 6 error 5 in windows 10 but not in XP 7 44
Excel for Mac - How make those Tabs larger? 2 31
Advice in Xamarin 21 56
remove upper case characters in excel 4 0
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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.

910 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

21 Experts available now in Live!

Get 1:1 Help Now