Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Excel macro, editing recorded cell.. not current

So I recorded a Macro... and I want it to be able to edit values next to the
current cell, not the ones i recorded the macro on.

here is the macro file..


Range("K3").Select
Selection.Insert Shift:=xlDown
Range("K3:L3").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Range("I4").Select

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel macro, editing recorded cell.. not current


ActiveCell.Offset(0,1).Insert Shift:=xlDown
With ActiveCell.Resize(1,2).Interior
.ColorIndex = 6
.Pattern = xlSolid
End With


--
Regards,
Tom Ogilvy


"TroyT" wrote in message
...
So I recorded a Macro... and I want it to be able to edit values next to

the
current cell, not the ones i recorded the macro on.

here is the macro file..


Range("K3").Select
Selection.Insert Shift:=xlDown
Range("K3:L3").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Range("I4").Select



Reply
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
Recorded macro has hard cell contents. DocBrown Excel Discussion (Misc queries) 4 August 11th 06 07:16 PM
Editing recorded macro code. Referencing workbook name in functio Mark Excel Programming 2 April 6th 05 11:03 PM
how is the syntax to replace a date, recorded within a macro with a cell value ? thomipilot[_2_] Excel Programming 0 October 1st 04 12:34 PM
how is the syntax to replace a date, recorded within a macro with a cell value ? thomipilot Excel Programming 1 September 30th 04 05:18 PM
how to run recorded macro without showing processing excel sheets christine Excel Programming 10 January 4th 04 10:57 PM


All times are GMT +1. The time now is 07:48 PM.

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

About Us

"It's about Microsoft Excel"