strange changing Vlookup formulas.

BJS1002

New Member
Joined
Jul 28, 2016
Messages
17
Hi,

I'm hoping you can help with these issues.
1.
I have a workbook where I import data from other workbooks into various hidden sheets.
I then have one master sheet that links them all together using vlookup.
My problem is when I import the workbooks my Vlookup formula change the look up range.

2.
I am getting a privacy warning.
"This document contains macros, ActiveX Controls, XML expansion pack information or Web components."
I checked the Macro settings but it is all greyed out.

Thanks in Advance
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi oldbrewer

=IFERROR(VLOOKUP(A2,AEDB_COPY!$A:$EH,32,FALSE),0)

It changed to (Change in bold) =IFERROR(VLOOKUP(A2,AEDB_COPY!$E:$EH,32,FALSE),0)
 
Upvote 0
I found my problem. I was importing to the worksheet the Vlookup was pointing to and as part of my code I was inserting a column in "A", so to work around that I will change the way I import data.

so I now have a new problem. When I change my code to paste from A1 to B1 I get an error. my code is:

Workbooks.Open Filename:= 'server file
ActiveWorkbook.SaveAs Filename:="C:\TEMPLATES\import.csv"
Selection.AutoFilter
Selection.AutoFilter Field:=10, Criteria1:=Array( _
"Access Cap", Operator:=xlFilterValues

Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Workbooks("GF Tracker Master.xlsm").Activate
Worksheets("import").Range("B1").PasteSpecial xlPasteValues


Any help is greatly appreciated.
 
Upvote 0
why not just pastein the last line of your code with cells(2,2).select and then the code for a normal paste
(you have already copied the range ready for pasting)
 
Upvote 0

Forum statistics

Threads
1,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top