Edit The Text In The Box With VBA
Mar 23, 2009
I have an autoshape with a text box in it. It is one of those "scroll" shapes. I want to be able to edit the text in the box with VBA, but I don't know how to call it because I can't seem to find the properties for it. I tried recording a macro to do it, and it called it:
View 5 Replies
ADVERTISEMENT
Dec 13, 2007
how can I open a .txt file with vba and replace alll "," with ";" ?
View 9 Replies
View Related
Mar 14, 2009
I have tried experimenting with LEFT, RIGHT functions. I want to edit a text string using a delimiter. For example: "NOS|NOS". I have a column of 256 rows of such entries, a name; the pipe; a name. I need to be able to strip out one side or the other using that pipe as the delimiter, leaving only "NOS". With 256 rows of items with this format - the length of the text string will vary.
View 3 Replies
View Related
Dec 7, 2007
I was wondering if it was possible for a macro to edit a file by opening each .txt file, searching for the word "Reference", and then replace it with the word "Ref". Then save and close the text file.
There are no delimiters in the text files.
View 9 Replies
View Related
Oct 22, 2007
I used the macro editor to create a "simple" macro to edit 7 rows of text. The steps were basic and simple - F2 key, backspace about 25 times, and down arrow then repeat these 3 steps 6 more times. The macro I got gave me the result of the very first cell as I was recording the macro. I think I remember the old Lotus 1-2-3 macro text - {edit}{backspace}{down}. Wish it were still that simple.
View 5 Replies
View Related
Feb 7, 2009
I use excel to read in an ASCII data file in which every line beginning with H is a header line and lines beginning with S are data line.
I want excel to filter out the header lines and output the file with the data lines only then outputs these in a new file.
I also want it to read the values from column 72 to 75 and subtract 6 from them then output them again to the same new file.
Sub read()
Open "d:/intouch/0502SPSS.LOG" For Input As #1
Dim i As Integer
Dim lines(9999) As String
i = 0
Do While Not EOF(1)
Line Input #1, z
i = i + 1
If Mid(z, 1, 1) = "H" Then
i = i - 1
ElseIf Mid(z, 1, 1) = "S" Then.................................
the problem is that the new file is generated but it is always empty
View 9 Replies
View Related
Apr 21, 2008
I have an xl doc in which one of the sheet's column A changes value every 1 hour...
What I would like to know is.. if there is a method in which i can copy these values from column A to a text file every hour...
The range of cells containing values in Column A also varies every hour.
Also, the old values in the text file needs to get deleted before the new values are updated every hour.
View 14 Replies
View Related
Oct 13, 2006
Have a macro that copies a formula from each of 100 workbooks to a new workbook. I want to display these formulas as text and want a macro or someway to display these cells as text. I have tried to record a macro that presses the F2 key, the home key and the apostrophe. This works for the one cell but provides the following macro that does not work for anyother cell.
ActiveCell.FormulaR1C1 = _
"'=VLOOKUP($A$30,'G:Variance Reports FY07[Salary Dist Var Repts_Cur Mth.xls]end of July'!$E$76:$G$200,3)"
Range("B3").Select
View 2 Replies
View Related
Sep 27, 2006
I have a datafeed program that offers multiple DDE link types to retrieve different types of data. After pasting the DDE links into Excel, all works well. However... To modify the links means manually editing upto 12 different array formulas located on different pages then pressing Ctrl + Shift + Enter after each to change the data source being analysed.
I found that I can manually copy and paste a few characters into each linked array formula, Ctrl+Shift+Enter but it needs to be by Macro referring to a couple cells (Say A1, A2) containing the variables that alter the data source being linked to.
I need to make a VBA Macro that refers to these two cells containing text, and modify the 12-odd linked array formulas.
eg. {=SUB33|getlocation!'N,pg,9,vp,A,30'}
In this example Linked Array formula, the bolded PG and 9 would be variables pulled from cell A1 and A2.
All other components of the array formulas stay unmodified, it is only the "pg,9" text that needs to change in each linked array.
View 4 Replies
View Related
Jun 28, 2012
I want to use exel to align two texts. Anyways, I am looking for a way to take the text on cell A2 to the end of the text on cell A1, and delete A2, shifting the other cells up. Is it possible to do it by using a shortcut key?
View 5 Replies
View Related
Jan 21, 2013
Is it possible to edit my .bat file using vba?
View 1 Replies
View Related
Jan 24, 2007
I am using Excel 2000
I have recently opened a file sent to me, and since closing it my Edit menu does not work properly when I open any existing files or start a new file
The problem is with Copy, Cut Paste and Paste Special, when I click on the Edit menu they are all greyed out, also if I right click they are also greyed out
Obviously the file I opened has changed some settings, how do I re-set this
View 14 Replies
View Related
May 27, 2008
Is there a way to setup a spreadsheet so data that has been entered cannot ne deleted or edited, and only the last field in the column can be accessible? So if I have info entered in a1, a2, a3, b1, b2, b3, no one can edit or delete them, and can only add to a4 and b4? Will I need to write a macro for this or is it something I can do with certain settings?
View 9 Replies
View Related
Oct 27, 2008
The edit box used to make or edit ranges for Defined Names is VERY difficult to use for long char strings. The arrow keys do not move the cursor within the edit box & the end key does not work.
How to edit range names that are 100-200 characters long?
Are there settings to alter behavior of arrow keys withing these "range definition boxes"?
View 9 Replies
View Related
Jul 16, 2009
how to set up and/or edit my macros so that I can use them in various outside workbooks without having to open the specific workbook I put the actual macros in?
View 2 Replies
View Related
Aug 15, 2007
When I list my macros using alt+F8 the edit option is no longer available, any ideas what I have done?
View 9 Replies
View Related
Jan 9, 2010
I am facing problem with my footer, which is as under:
___________________________________________
E-mail: xxx_yyyy@somewhere.com
My footer should be printed at the bottom of my paper as shown above. But, as expected, when I change margins of page or even change the printing preference, like best print to draft print or like that, it goes changing like this:
________________________________________________E
-mail:xxx_yyyy@somewhere.com
or like this:
_________________________________________________
__E-mail:xxx_yyyy@somewhere.com
So, it become headache for me. i have to first see the print preview and then after I can go for printing. How to deal with this problem?
There should be two lines in footer: first will have _____________________________________only and the second one will have E-mail:xxx_yyyy@somewhere.com
View 9 Replies
View Related
Jun 6, 2006
My purpose is to give my endusers a workbook with a macro in it which applies changes to existing workbooks on their computers. I want the enduser to select each workbook to apply the changes and have the macro capture the names of the workbooks so they can verify that all of the appropriate workbooks have been changed.
I’m trying to change two types of data: (1) text, (2) formulas.
Here's what little I have, but not much is working.
Sub ChangeBACKLOG()
MsgBox "Open the FILE to which the Backlog fix is to be applied."
Dim targetWorkbook
dlgSource = Application.Dialogs(xlDialogOpen).Show
Set sourceWorkbook = ThisWorkbook
Set targetWorkbook = Workbooks.Item(Workbooks.Count)
On Error Resume Next
View 6 Replies
View Related
May 1, 2013
I've been trying to resolve an issue with the userform that i created. It adds new records to the sheet "Data" but i can't seem to add a search/edit function to it.
It could be either a combobox with the existing Project Id's or a text box + a control button, so a user could enter Project Id and hit a button.
The spreadsheet example is attached : Project Entry Form.xls
View 9 Replies
View Related
Dec 9, 2013
Is it possible to edit multiple =VLOOKUP formulas to add in a "[range lookup]" = FALSE without editing each one individually? I was going to use a find and replace for the "col_index_num" and add the FALSE to the end of that, but in this case my "col_index_num"s vary too much.
View 6 Replies
View Related
Jan 2, 2014
I have a sheet which has many columns in it, all columns are protected except column B. When I want to enter data always I have to insert a column in column B. When I clicked insert button, my B column move to C and B column become protected and C become unprotected. My query is always I want B column should be protected (even if i clicked on insert column button too).
View 1 Replies
View Related
May 24, 2006
I suddenly can not edit in a cell by double-clicking on it. I can only edit in the fx bar on top. Other sheets in the workbook still work normally. What causes this, how can I fix it and how can I make sure it doesn't
View 5 Replies
View Related
Jul 31, 2007
I need to edit the hyperlinks in my excel sheet. I know how to do this manually and edit one at a time, but I need to change 3000 of them!
Is there a way I can do this without going through each one?
View 9 Replies
View Related
Feb 22, 2008
i have an excel sheet that has a cell with a formula in it. This cell has been locked by the previous user.
I am unable to click on it and it because it is showing a #NAME? error, i need to edit it somehow. Is there some way i can edit it?
View 9 Replies
View Related
Apr 22, 2008
The formula below works apart from the first bit which i want to be if F23 says 'fail' then i want the cell to say 'no dissertation' but if f23 says pass then i want the formula past that bit to be put into action.
=IF(F23="Fail",0)*IF(COUNTIF(B22:B45,"Dissertation")=1,IF(VLOOKUP("Dissertation",B22:C45,2,0)>39,LOO KUP(F26,{0,40,50,60,70},{"No Dissertation","3rd","2:2","2:1","1st"}),"No Dissertation"),"No Dissertation")
isolation123
View 13 Replies
View Related
Apr 29, 2009
Heres a strange thing, My latest version of a spreadsheet i have design has got a small problem. When clicking on a cell, nothing appears in the edit window, and when you double click on the cell to edit the contents the data disappears.
This only happens on one sheet within a workbook of 7 pages. The werid thing is that it does not happen on the version before
Any ideas how this could of happened and is there a fix?
View 2 Replies
View Related
Sep 10, 2009
I've read a bit on the web about there being a bug with the 'edit links' feature. How/Can I get this function to work?
View 6 Replies
View Related
Oct 27, 2009
I have a worksheet with what appears to be symbols or text boxes; squares, some with a check mark in them, some without. cannot select any of them to edit or delete them, I can type in the cell behind the symbol, the symbol hides the text. I can copy and paste them, but not delete them. how to identify them to edit and/or delete them. Password protection and all cells are unlocked as well. I have stumped as well as other forums.
View 4 Replies
View Related
Jan 8, 2014
I have a macro enabled spreadsheet in which I am able to paste in the customer number as text, but I need to touch the cell in order to make the customer name populate in the next column.
Double click - enter and F2 -enter both will do this, but I'd rather not be doing this for 200 rows every time I have to use it. Is there a way to touch all of these rows without VBA? The spreadsheet was built by our IT department years ago and is rather fickle. I can't risk interrupting the code or I end up having to close it and start over. It's password protected.
Text to columns doesn't work.
View 4 Replies
View Related
May 10, 2014
i have a worksheet that gets data from web - its automated, but the website goes through a tunnel - with security - requires username and password
the Query Runs ok and smooth but i have to login manually by right clicking on a table where the query is and selecting "Edit Query" so i can login, excel vba doesnt save passwords for that part...
one way i find it possible to automate that part too would be to use maybe like the sendkeys statement to pop up the context menu from right clicking the mouse button, or like the options button on the keyboard.
I found this one:
[Code] .....
It works but the context menu comes exactly from where the current mouse position is..
I needed it to do the right click on a specific range in the worksheet (where the web query is)..
View 8 Replies
View Related