LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro showing Offset instead of Ranges

Dear All
I have created exactly the same simple macro on several PCs, but it shows
differently on just one of them and I don't know why. I have a feeling there
must be a setting somewhere either within Excel, VB or even on the individual
PC that's affecting things. I can't seem to find out why and wonder if
anyone has a simple solution please?

The macros should read something like:
Range("H5:H15").Select
Selection.Copy
Range("B5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("C5:F15").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("E1").Select
Selection.ClearContents

but instead it looks like:
ActiveCell.Offset(-14, -1).Range("A1:A11").Select
Selection.Copy
o ActiveCell.Offset(0, -6).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 1).Range("A1:D11").Select
Application.CutCopyMode = False
Selection.ClearContents
ActiveCell.Offset(-3, -2).Range("A1").Select
Selection.ClearContents

The incorrect macro doesn't even run and I have no idea why Offset and
values are appearing instead of cell references.

Many thanks in anticipation,
Diane Thorpe
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use OFFSET and COUNT functions within Named Ranges [email protected] Excel Discussion (Misc queries) 2 October 26th 06 04:01 AM
Dynamic Ranges and Offset RFJ Excel Worksheet Functions 3 August 29th 06 03:20 PM
Offset function and Dynamic Ranges SandyLACA Excel Discussion (Misc queries) 2 August 2nd 06 11:07 PM
Using Offset with named ranges StanJ Excel Worksheet Functions 5 September 2nd 05 09:07 AM
Ranges using offset Fatir Zelen Excel Programming 11 April 24th 04 11:15 PM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"