Add Shape (Arrow) To Worksheet

Apr 18, 2008

This one has me baffled: I recorded a macro to add a shape to a worksheet, very simple. When I try and run it it comes up with a "The specified value is out of range" error. I've searched the net and it seems to come up where the file has been converted from an earlier version of excel (which this file has) but I haven't been able to find a work around for it. The relevant code is

With ActiveSheet
.Shapes.AddShape(msoShapeLeftArrow, 205.5, 312#, 144#, 23.25).Select
End With

View 3 Replies


ADVERTISEMENT

Arrow Keys Not Working On Protected Worksheet

May 4, 2008

Have a file that I have been coding and find when I open to a worksheet with limited access cells, the Up and Down arrows will not move vertically though Lrft and Right arrows OK though not raping arround. This problem may have been on for sometime and I haven't been back to it. Other Excel files all OK.

View 4 Replies View Related

Control Tip For Shape In Worksheet?

Jul 15, 2014

Is there any way to place a Control Tip for a shape on a excel worksheet?

View 3 Replies View Related

Hide & Show Shape On Worksheet

Sep 18, 2008

I've been trying to make use of 'Run "doit", but the macro stops when it gets to my sheets called 'RST' and 'RST Pivot'. What I'm I doing wrong?

Sub DoIt()
Application. ScreenUpdating = True
With Sheet1.Shapes("Rectangle1")
.Visible = msoTrue = (Not Sheet1.Shapes("Rectangle1").Visible)
End With
'Toggling sheets Forces Rectangle 1to show while code is running
Sheets("RST").Select
Sheets("RST Pivot").Select
End Sub

Also, do I need to change 'With Sheet1.Shapes' to reflect the actual sheet name?

View 3 Replies View Related

Test/Check If Shape Exists On Worksheet

Aug 31, 2006

I'm creating a macro to select, modify dimensions and place shapes on a excel sheet. (I'm talking about pictures insered and stocked in a specific sheet of my workbook)
When the users insert a new picture he has to set a name for each of them.
A combobox contain the choices, when an item is selected, the macro identify, size and place the corresponding picture.

But I have a bug if a shape doesn't exist when I try to select it :

Sheets("fiche de controle").Select
'select the sheet with the pictures
ActiveSheet.Shapes(Item_old).Select
'select the shapes "Item_Old"
Item_Old is a variable corresponding to the picture name.

If the user made a typo, I have a bug.
Someone knows how to test if the shapes exist to display a meesage if not ?
Or somethig to avoid this kind of bug ?

View 6 Replies View Related

Determine Position Of Shape/Button On Worksheet

Jun 2, 2008

I have written a small piece of code that handles clicks on buttons on an excel spread sheet. When a button is pressed, i need to know the row number where the button resides in.

I have searched and read about this issue on several forums, and they all indicate that i need to use something like

application.caller.topleftcell.row

to get the row number and

application.caller.topleftcell.column

to get the column number.

However, when i use the row variant, it ALWAYS returns row number 1. When i use the column variant, it returns the column number it is actually in.

i have added the full code that is creating the buttons below, and also the part that displayes the rownumber that is incorrect.

Private Sub Workbook_Open()
Dim name
Dim time As Integer
time = InputBox("Typ the hour you are checking" & vbCrLf & "eg: 7, 10, 13, 14, 15, 16, 17, 18, 19", "Which Check")

View 9 Replies View Related

Change/Modify/Add Text In Shape On Non-Active Worksheet

Sep 7, 2006

I have a button on say, sheet1 with text that I want to change after a certain action takes place; however, I was trying to change this text without switching sheets. (switching sheets isn't a big deal, I'm mainly trying to do it my way for the practice). I'm able to select the button on the other sheet without actually switching sheets, but when it comes to changing it's text I get an error. Here is the code I tried:

Sub macro1 ()
Worksheets("sheet2").Select
Worksheets("sheet1").Shapes("Button 2").Select
Selection.Characters.Text = "Done"
End Sub

Problem with this is it gives cell A1 on sheet2 the "done" text. I also tried this...but it gives the error.

Sub macro1 ()
Worksheets("sheet2").Select
Worksheets("sheet1").Shapes("Button 1").Select
With Worksheets("sheet1").Shapes("Button 1")
.Characters.Text = "Done"
End With
End Sub

View 3 Replies View Related

Change Shape Text Without Selecting Shape

Mar 4, 2009

when i run the below code i get an error 438 'object doesnt support this property or method'

View 2 Replies View Related

Locate A Shape Within A Shape

Jan 24, 2014

On the attached spreadsheet there is two irregular shapes. "Area1" & "Area2". I need to be able to determine which area the "ball" shape is located in. If the ball is in Area1 then "Multiply 8" gets the ball and "Multiply 9" moves to the blue cell "AH39". If the ball is in "AreaB" Multiply 9 gets the ball and "Multiply 8" runs to cell "S37"

I should be able to do the moving of the shapes using all the samples, its determining which area the ball is in is the problem.

In the real spreadsheet i will probably have around 10 different Areas.

Move Two Objects - Select Case.xlsm‎

View 5 Replies View Related

Shift Key Down Arrow

Apr 22, 2006

1:
Does a code exist to do Shift Key_Arrow Right, Arrow Down and then select that range to Copy?

I know the arrows codes but was told by someone no code can ever exist for a Shift Key.

I need to select a range after a "Search For" but the Range is not determined by the actual Cell ranges.

My Code for Arrow keys are:

'Selection.Offset(0, 1).Select '*Right*
'Selection.Offset(0, -1).Select '*Left*
'Selection.Offset(-1, 0).Select '*Up*
'Selection.Offset(1, 0).Select '*Down*
'Selection.Offset(3, 0).Select '*Down * 3 Cells

2:
What is the macro code to insert more than 1 row ?

The code I use to insert 1 Row is :

Selection.EntireRow.Insert

Sometimes I need to insert 25 rows.

View 9 Replies View Related

Add Arrow To Userform

Oct 27, 2006

probably this is easy but i can not find it. i have created an userform and would like to add an arrow (<----->) on it to accentuate something. How can i add an simple arrow or line on a userform

View 3 Replies View Related

Input Msg To Appear In The Other Area Where I Put The Arrow

Jan 19, 2007

In the attached file and when I click on Name or ID (B5 or B6) the input msg will appear on the same cell using the validation rule.

Actually I need any input msg to appear in the other area where i put the arrow. I tried to move the input msg to that Irea and it worked great each time i click on B5 or B6 but after closing the file and opening it later.. they will go back to the same place.

View 14 Replies View Related

Simulating The ALT+DOWN ARROW Shortcut

Mar 31, 2009

Simulating the ALT+DOWN ARROW shortcut. I came up with the hereunder code.

View 4 Replies View Related

Using Arrow Keys As Input VBA

Aug 5, 2013

I am trying to create the game of snake in VBA as practice, but I cannot find how to use the arrow keys as input. From what I have read it seems that it may not be possible, but how to change the value of a variable every time an arrow key is hit, post how to do so.

View 2 Replies View Related

Run Macro When Right Arrow Key Pressed

Apr 1, 2009

I have Sheet2 containing Supplier data in 2 columns - SupplierTAxCode and SupplierName (unsorted)

Sheet1 contains the Expenses section.

In Sheet1, column E6 to E1000, after inputting each SupplierTAxCode and pressing the RIGHT ARROW key, I would like to automatically get the SupplierName in column F6 to F1000 - from the corresponding data in Sheet2

In the event that the input in any of the cells in E6 to E1000 does not exist in SupplierTAxCode in Sheet2, would it be possible at the same time, to change the background color of the adjacent cell (SupplierName) in column F6 to F1000 at the same time - as a reminder to add those to the Supplier data in Sheet2 at a later date.

I could use Index Match and Conditional Formatting, but am concerned about the file sizes.

View 9 Replies View Related

Replicate Arrow Keys

Dec 16, 2009

I understand the end(x1Down), but i think I am missing something. I just want to go to the next cell left, right or Up, Down from whatever cell is currently selected. How do I replicate a 1 cell move as an arrow key would do?

View 9 Replies View Related

Cannot Scroll With Arrow Keys

Jul 18, 2006

For some reason, when i use my arrow keys to move from cell to cell it now only scrolls my screen around....What did i do, and how do i change it back? I find it sad that i can write code and this stumped me.

View 3 Replies View Related

Display Up/Down Arrow In Cell

Oct 27, 2006

I’m looking to add arrow in cells. I.e. if the value of B2 is greater than A2, the cell C2 should display an arrow pointing upwards. If the value is less the arrow should point downwards.

View 2 Replies View Related

Arrow Keys To Move The Box

Jul 5, 2007

When every I click in a excel box and try to use my arrow keys to move the box example: A3 to A4. All it does is move the page up and down or across. Is there some type of setting on that is not letting me do this. It use to allow me to. Until another employee got on it. I can not start over becouse I have months of work on this book.

View 2 Replies View Related

Add Scroll Arrow To ActiveX Combobox?

Mar 20, 2013

I have an application were I would like to use an Active X combo box instead of a regular dropdown list. The list contains 64 items and the text becomes very small in a standard dropdown list. Using an Active X Combo Box allows me to enlarge the text for easier viewing but with 64 items the list tends to run off the sheet. Is their a switch or some other way (scrolling) to make it more viewer friendly?

View 5 Replies View Related

Click The Down Arrow To See Validation List

Sep 1, 2008

I'm not sure this is even possible, but I have a long cell that has data validation. Right now, you have to move the mouse all the way over to click on the arrow to see the list. Is there a way (programmatically or otherwise) to make the down arrow show the list when you're in that cell??

View 10 Replies View Related

Disabling Arrow Keys For InputBox

Jan 8, 2009

I noticed the arrow keys will move the active cell while I have an inputbox active. This will be an issue for my users, I need them to key in data only.

Is there a command that will disable the arrow keys while the users enter the requested data?

View 10 Replies View Related

Can Click Little Filter Arrow Without A Mouse?

Jul 18, 2013

In excel when you have filters on for all columns there is a little bitty square box with a little down arrow (like an upside down triangle) in the lower right corner of every cell in the top row (the header row) and I can't find a way to select one of those little itty bitty down arrows without using a mouse - -

Is there any way to select one of those little down arrows in the little filter box icon thingy with the keyboard?? I can't figure it out.

I just want to select the little arrow so that the filter dialog box opens - I am trying to create a keyboard macro that will use the 'BEGINS WITH' macro but when i record the macro it uses the same word for the "BEGINS WITH" parameter every time and I want it to use the word in the current clipboard - can't seem to write that.

View 3 Replies View Related

Copy- Find- Arrow To Right- And Paste

Mar 15, 2007

I have two spreadsheets, A & B. In spreadsheet A, user will input a contract number and values for the contract. The user inputs the contract number in cell D4. I have linked this cell to cell B1 of spreadsheet B.

I want Excel to

-copy values from spreadsheet A

-then go to spreadsheet B and find the value of B1(which is the contract number entered in cell D4 of spreadsheet A)

- arrow over 14 columns

- then paste

here's the code i have so far. No matter what contract I input in cell D4 of spreadsheet A (when i step through the code) excel always takes me to cell C10 of spreadsheet B!?!?!

note: the code is in a module in spreadsheet A

Sub find_contract()
'
' find_contract Macro
' Macro recorded 03/15/2007 by b944553

View 9 Replies View Related

Trigger A Macro On Arrow Keys

Apr 24, 2007

I'm creating a small Excel RPG where the player moves the around a blank worksheet with the walls of a maze appearing as you approach them (think dark corridors, you can see only 1 cell in all directions around you).

The players current location is shown by excel setting the activecell to the players location. Currently I have four buttons labeled Up, Down, Left and Right which the player clicks to move in the desired direction.

The testers were frequently missing the four movement buttons and this would put the activecell outside of the maze next to one of the buttons. They'd have to move it back manually.

I would like for the players to move around using the arrow keys to use the activecell, as you would normally move around a sheet... but before each movement there is a procedure that check IF the player can move in the desired direction or not (cell borders used for walls), and then once they've moved there are more procedures to check for monsters treasure chests etc.

How can I make the arrow keys trigger the macros that the Up, Down, Left and Right buttons currently trigger, and not just move the activecell?

View 9 Replies View Related

VBA Equivalent For Shift-Arrow Keys

Nov 7, 2007

Does anyone know the VBA equivalent to using the Shift-Arrow keys on the keyboard? I am wanting a macro to do this for me. Specifically I am wanting to use Shift-Arrow Right.

View 9 Replies View Related

Press Down Arrow Instead Send Ctrl+Alt

Dec 24, 2008

How to send by holding Ctrl+Alt and i need to press Down Arrow

I tryed with

Sub test()
Application.SendKeys "^+({DOWN})"
End Sub

View 9 Replies View Related

Red Line Going Across The Spreadsheet While Using The Arrow Keys

Dec 31, 2008

if it's possible to have a red line going across the spreadsheet while using the arrow keys it follows you down through all cells. And is there a vba coding that someone has ready written.

View 9 Replies View Related

Code Hides The Arrow In Column

Mar 11, 2009

I have a sheet that is autofiltered. Once a user autofilters columns 20, I would like to hide the arrow for that column so the user can no longer autofilter using that column. When I run the code - it hides the arrow in column 20, but then it unfilters all the data . . . can I hide the arrow in column 20 but keep the data as it was filtered before the code ran.

Dim c As Range
Dim i As Integer
i = Cells(2, 1).End(xlToRight).Column
Application.ScreenUpdating = False

For Each c In Range(Cells(2, 1), Cells(1, i))
If c.Column = 20 Then
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
End If
Next
End Sub

View 9 Replies View Related

Validation Drop-down Arrow Not Showing

Nov 2, 2006

I have a spreadsheet with a number of columns regulated by Data Validation.

They are linked to lists with DV, which normally generates a nice drop-down box when you click on the cells.

I inserted a column into the spreadsheet, and now DV doesn't generate a drop-box anymore! In any of the columns! The "In-cell dropdown" box is still checked in my Data Validation screen, and the cells are still bound by validation to only conform to the lists.

Can anyone think of why these boxes would have disappeared? I've shut down Excel and re-opened the file in case it was a momentary glitch. I've deleted the inserted column... In short, I've tried everything I can think of.

Even if I remove Data Validation from the columns, and re-instate it with the "In-cell dropdown" box checked, I still don't get my drop-boxes.

I would be totally happy to send my complete file to anyone who wants it (although it's a bit big, as I have to send the directory structure if you don't want to get an error, about 1 MB), but anyhow - I'm reasonably desparate to get the drop-boxes back in.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved