PC Review


Reply
Thread Tools Rate Thread

Dim active sheet

 
 
Stanley Braverman
Guest
Posts: n/a
 
      26th Feb 2009
Can I add a DIM line for this macro?
It seems I need to access the complete sheet. If I have to many cells it
will not work correctly. With fewer cells it works fine

Sub Cell_Down()
'
' Cell_Down Macro
' Macro recorded 2/25/2009 by Windows User
'
' Keyboard Shortcut: Ctrl+d
'




Selection.Insert Shift:=xlDown

End Sub


 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      26th Feb 2009
Hi,

There's nothing to Dimension in this code, it will simply insert as many
cells as you have selected. What is/isn't it doing that you want it to?

Mike

"Stanley Braverman" wrote:

> Can I add a DIM line for this macro?
> It seems I need to access the complete sheet. If I have to many cells it
> will not work correctly. With fewer cells it works fine
>
> Sub Cell_Down()
> '
> ' Cell_Down Macro
> ' Macro recorded 2/25/2009 by Windows User
> '
> ' Keyboard Shortcut: Ctrl+d
> '
>
>
>
>
> Selection.Insert Shift:=xlDown
>
> End Sub
>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      26th Feb 2009
Why not just do

Cells.ClearContents

--
__________________________________
HTH

Bob

"Stanley Braverman" <(E-Mail Removed)> wrote in message
news:TIBpl.36917$(E-Mail Removed)...
> Can I add a DIM line for this macro?
> It seems I need to access the complete sheet. If I have to many cells it
> will not work correctly. With fewer cells it works fine
>
> Sub Cell_Down()
> '
> ' Cell_Down Macro
> ' Macro recorded 2/25/2009 by Windows User
> '
> ' Keyboard Shortcut: Ctrl+d
> '
>
>
>
>
> Selection.Insert Shift:=xlDown
>
> End Sub
>



 
Reply With Quote
 
Stanley Braverman
Guest
Posts: n/a
 
      26th Feb 2009
Sometimes I need to move cells down only several cells and at other times I
might need to move them down 30 or more cells. That's why I need individual
control of move cells.


"Bob Phillips" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why not just do
>
> Cells.ClearContents
>
> --
> __________________________________
> HTH
>
> Bob
>
> "Stanley Braverman" <(E-Mail Removed)> wrote in message
> news:TIBpl.36917$(E-Mail Removed)...
>> Can I add a DIM line for this macro?
>> It seems I need to access the complete sheet. If I have to many cells it
>> will not work correctly. With fewer cells it works fine
>>
>> Sub Cell_Down()
>> '
>> ' Cell_Down Macro
>> ' Macro recorded 2/25/2009 by Windows User
>> '
>> ' Keyboard Shortcut: Ctrl+d
>> '
>>
>>
>>
>>
>> Selection.Insert Shift:=xlDown
>>
>> End Sub
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      27th Feb 2009
Then why do you feel that you need to access the whole sheet?

--
__________________________________
HTH

Bob

"Stanley Braverman" <(E-Mail Removed)> wrote in message
news:wjFpl.43987$(E-Mail Removed)...
> Sometimes I need to move cells down only several cells and at other times
> I might need to move them down 30 or more cells. That's why I need
> individual control of move cells.
>
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Why not just do
>>
>> Cells.ClearContents
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>
>> "Stanley Braverman" <(E-Mail Removed)> wrote in message
>> news:TIBpl.36917$(E-Mail Removed)...
>>> Can I add a DIM line for this macro?
>>> It seems I need to access the complete sheet. If I have to many cells
>>> it will not work correctly. With fewer cells it works fine
>>>
>>> Sub Cell_Down()
>>> '
>>> ' Cell_Down Macro
>>> ' Macro recorded 2/25/2009 by Windows User
>>> '
>>> ' Keyboard Shortcut: Ctrl+d
>>> '
>>>
>>>
>>>
>>>
>>> Selection.Insert Shift:=xlDown
>>>
>>> End Sub
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Data From Active Sheet to Closed Sheet on Network ryguy7272 Microsoft Excel Programming 4 3rd Jul 2008 08:44 PM
Creating new sheet named one week newer that active sheet davegb Microsoft Excel Programming 6 25th Mar 2008 12:21 AM
I need to sort an active sheet using the col of the active cell =?Utf-8?B?SGFtRmx5ZXI=?= Microsoft Excel Programming 3 6th Jun 2006 07:25 PM
Copy my active sheet to a new sheet and open with an input form Brad Withrow Microsoft Excel Programming 0 6th Apr 2006 03:56 AM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Microsoft Excel Programming 3 23rd Jan 2006 09:57 PM


Features
 

Advertising
 

Newsgroups
 


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