Mustang0710
New Member
- Joined
- Mar 4, 2015
- Messages
- 16
I have a large macro that creates reference columns based on other data in the workbook. This macro is working fine on a Windows PC, but is giving me issues on the Mac version of Excel.
Section of code:
Range("O2").Select 'Enter formula on first cell
Cells(2, 15) = "=IF(ISERROR(VLOOKUP($B2,$S$2:$S$50000,1,FALSE)),"""",""Yes"")"
Range("O2:O" & NLastRow).Select
Selection.FillDown 'Copy down through all nodes
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False 'Debug MAC
Application.CutCopyMode = False
The Selection.Copy command does not appear to do anything, so when it tries the Selection.PasteSpecial line, it receives and error because nothing has been copied.
Thank you very much for your help.
Section of code:
Range("O2").Select 'Enter formula on first cell
Cells(2, 15) = "=IF(ISERROR(VLOOKUP($B2,$S$2:$S$50000,1,FALSE)),"""",""Yes"")"
Range("O2:O" & NLastRow).Select
Selection.FillDown 'Copy down through all nodes
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False 'Debug MAC
Application.CutCopyMode = False
The Selection.Copy command does not appear to do anything, so when it tries the Selection.PasteSpecial line, it receives and error because nothing has been copied.
Thank you very much for your help.