Run-Time error 1004 when VBA run Text-To-Column
Expert,
I got error message 1004 said "Excel can convert only column at a time, The range can be many rows tall but no more than one column wide, try again by selecting cells in one column only. my VBA code is this. If I copy B5 only, the Text-To-Column
is working. can you help ?
Sheets("Sheet1").Range("B5:E300").Copy
Sheets("Sheet2").Select
Range("A2:E300").PasteSpecial xlPasteAll
Columns("B:M").Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _
Array(7, 1), Array(8, 1), Array(9, 1), Array(10, 1), Array(11, 1), Array(12, 1)), _
TrailingMinusNumbers:=True
Thanks
James Liang
Re: text to columns error
You have four columns selected when you call text to columns, so ...
Replace the word "Selection" with Range("A1:A300") so it looks like...
Range("A1:A300").TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
The above is my guess as to what you want to work with; I didn't experiment with the rest of the code.
Jim Cone
Portland, Oregon USA
free & commercial excel programs (n/a xl2013)
https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2
Similar Messages
-
Opening Input Schedule getting Run Time Error -1004
Hi
When i am opening few Input Schedules , i am getting this error message:
Run Time error -1004.
Cannot run the Macro 'auto open'. The Macro may not be available in this workbook or all macros my be disabled.
But when i am clicking on the END button in the Pop Up Window, i can go ahead with my Input Schedules.
Can you please throw some idea on the same.
Regards
VivHi Nilanjan
Yeah i have saved it once in a xltm format through ParknGo option. But now i have savIing it the Input Schedule Folder in the following Path Location
C:\BPC\Data\Webfolders\<APPSET>\<APPLICATION>\EEXCEL\INPUT SCHEDULES.
So when i am opening the same from the above location i am getting the error.
Now i have change the name and save it as a xlt format and still getting the error.
Looking forward .
Thanks
Viv -
Hi experts!
I try use a very simple code:
Dim aaa As String
aaa = "=EVGTS($B$2;$B$45;""CATEGORY:""&$D$2;""CHARGE_TY:""&$B$5;""CLNT_BRND:""&$B$6;""P_ACCT:""&""I"";""P_CC:""&$B$8;""P_ENTITY:""&$B$9;""P_SM:""&$B$10;""TRAF_KIND:""&$B$11;""QUAN_TY:""&$B$12;""MEASURES:""&$B$13;""TIME:""&""2012.TOTAL"")"
ActiveSheet.Range("a1").Value = aaa
It doesn't work. I get "Run-time error '1004': Application-defined or object-defined error". Without "=", VBA writes this text to cell
Dim aaa As String
aaa = "EVGTS($B$2;$B$45;""CATEGORY:""&$D$2;""CHARGE_TY:""&$B$5;""CLNT_BRND:""&$B$6;""P_ACCT:""&""I"";""P_CC:""&$B$8;""P_ENTITY:""&$B$9;""P_SM:""&$B$10;""TRAF_KIND:""&$B$11;""QUAN_TY:""&$B$12;""MEASURES:""&$B$13;""TIME:""&""2012.TOTAL"")"
ActiveSheet.Range("a1").Value = aaa
And if I add "=" manually to cell it works. What's wrong? How can I fix it? Please advice.
ActiveSheet.Range("a1").Formula = aaa
instead of
ActiveSheet.Range("a1").Value = aaa
also doesn't work
Regards,
MaximIt's funny but it's works System replaces "," with ";" in cell and this code works:
Range("A1").Select
ActiveCell.Formula = _
"=EVGTS($B$2,$B$45,""CATEGORY:""&$D$2,""CHARGE_TY:""&$B$5,""CLNT_BRND:""&$B$6,""P_ACCT:""&""I"",""P_CC:""&$B$8,""P_ENTITY:""&$B$9,""P_SM:""&$B$10,""TRAF_KIND:""&$B$11,""QUAN_TY:""&$B$12,""MEASURES:""&$B$13,""TIME:""&""2012.TOTAL"")" -
Run-time error '1004' Application-Defined or object-defined error
Hello friends,
My requirement is to make the cells under Columns Actual, forecast and target (Dimesnion Category) Locked.
I've used various methods like GetOnlyRange but it didnt work.
Now, i've selected all the cells of the sheet, where user can input and made them unlocked. ( from Right-click>FormatCells>Protection tab-->Locked checkbox unchecked)
Then, go to "review" tab, click "Allow Users to edit Ranges",-> Protect Sheet---> ticked "Unlocked Cells"
Then go to WorkBook Options and set a password for the worksheet.
But on expand, I'm facing Run-time error '1004' Application-Defined or object-defined error.
Please help.
Please help.Hi,
I think that is VBA Runtime error, you can fix these errors by downloading in various sites.
http://www.articlesbase.com/data-recovery-articles/vba-runtime-error-1004-application-defined-or-object-defined-error-fix-these-errors--1339060.html
You can try with the above link. I hope this could solve your problem.
Regards,
B.S.RAGHU -
VB Run time error '1004' in SEM BPS layout
Hi,
When I run a layout and activate the standard SAP macro, a Visual basic error message " Run Time error '1004' " appears.
This error has been resolved after I made the following settings.
TOOLS --> MACRO --> SECURITY --> Trusted Publishers --> check flag "Trust Access to Visual Basic Project".
Does each user has to make this setting? Isn't there a setting for SAP macros to attach a trusted digital signature that automaticaly takes care of this error w/o having each user make this setting?
I heard, a setting has to be made in Trusted Publishers to accept "SAPAG".
But, I don't see this in Trsuted publishers list.
I don't see this error in Excel 97 but in Excel 2003. How do I know which versions of excel gives this error to educate our users about this error.
Appreciate any help.Hi anil1121,
Since this is not a vb.net issue, and based on your description, I would recommend you post this issue in
http://social.msdn.microsoft.com/Forums/en-US/home?forum=officegeneral forum to get supports.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Run-time error '1004' -- Method 'Container' of object '_Workbook' failed
Dear All,
One of our users is getting the following Microsoft Visual Basic error while running the report S_ALR_87013614.
Run-time error '1004'
Method 'Container' of object '_Workbook' failed.
I have searched the forum posts for help. But I only found some details related to Run-time error 1004 related to some excel file security but not related to "Method 'Container' of object '_Workbook' failed".
Could anyone please tell me how this error can be eliminated for the user?
Regards,
Lakshmi.Dear Arpan,
We too observed a few PIDs along with the one that you have mentioned but they make no difference. Some users who has the PID G_RW_DOCUMENT_TYPE set with some value are getting the report.
Upon further searching we are assuming that it could be an issue with the Microsoft applications or macro settings of the user. But not sure about it.
Regards,
Lakshmi Venigala. -
Iam getting run time error message when i try to open dream weaver cs4
iam getting run time error message when i try to open dream weaver cs4
exact message am getting when i try to open dreamweaver cs4- this application has requested the run time to terminate in it in an unusual way . please contact the applications support team for more information.
-
TS3212 "Run time Error R6025" when I try to access tunes?
I have had ITunes for some time and have moved to a new computer. It performed sucessfully but now I am getting "Run time Error R6025" when I try to access tunes?
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT) as you start iTunes, then going to Edit > Preferences > Store and turing off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
tt2 -
I am using Vb6(sp5), NT4, Component Works (latest), and Ni-Daq 6.9.1. The error occurs when using either a PXI-6052E or PXI-6070E. The Self Cal works fine but the external cal code generates this error during the call. The code used is taken directly from the programming example in the NI_DAQ programmers reference for the Calibrate_E_Series function.
The Error Text is:
Run-time error '10086':
The external reference is invalidJohn;
I found a Knowledge Base about that error you can refer to. The KB, originally, talks about Labview, but, as Labview makes NI-DAQ function calls in the same way any other Software language, you can apply the same concepts when using VB. The link is:
http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/2d8abbbb8d45ff74862565f6005c8d7b?OpenDocument
and the KB number is 18TAPEY5
in case you prefer to search for it at our home page.
Hope this helps.
Filipe
Applications Engineer
National Instruments -
Run-time error '13' when trying to see query properties
*Hi BI friends,*
I want to set Auto refresh property when opening to my work book ,
*If i try to see "Query Properties" in Excel 2007 in BEx Analyzer, i am getting the below error :*
*Run-time error '13'*
*Type Mismatch.*
*Plz, Help!*Hello Reddy,
Try to use the latest version of front end tools
The issue should be solved:
http://service.sap.com/swdc
-> Download
-> Support Packages and Patches
-> Entry by Application Group
-> SAP Frontend Components
-> SAP GUI FOR WINDOWS
-> SAP GUI FOR WINDOWS 7.10 CORE
-> SAP GUI FOR WINDOWS 7.10 CORE
-> win32
-> gui710_18-10002995.exe
_ -> BI ADDON FOR SAP GUI
-> BI 7.0 ADDON FOR SAP GUI 7.10
-> BI 7.0 ADDON FOR SAP GUI 7.10
-> Win32
-> bi710sp12p_1201-10004472.exe
|_ -> BI ADDON FOR SAP GUI
-> BW 3.5 ADDON FOR SAP GUI 7.10
-> Win32
-> bw350gui710_10-10004473.exe
If persist, let me know.
Kind regards,
Edward -
Run-time Error '429' when copying queries from one userid to a new userid
Hello,
One of the users is having an issue when copying queries from an old user id to a new user id.
She is getting the visual basic run-time error '429' - active x component can't create object while copying.
This is not consistent. From what I can tell, this does not appear to be a bex query designer issue but something in microsoft.
Please let me know either way. I have found minimal posts on this issue. Most that I have found are outside the sdn forum and talk about registry issues?
Thank you,
LyndaAccording to your error message, your onClick function declaration line closes the parenthesis twice... you may have a typo in what you actually put in the file versus what you think you put...
function onClick()event:MouseEvent):void{ -
Run time error message when I try to open itunes?
I cannot open itunes afte using it for 3 years. I receive a run time error message.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT) as you start iTunes, then going to Edit > Preferences > Store and turing off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
tt2 -
Run time error COMPUTE_BCD_OVERFLOW when extracting data
Dear all,
We are facing an issue when trying to extract the data for CRM Service contract item Extractor. It is giving runtime error when trying to extract particular range of transaction number say 1 to 50. but if i split these into 2 packages i.e 1 to 25 & 26 to 50, the data is getting extracted without any problems. If anyone has come across the similar issue, please share your views.
details of the errro:
Runtime Errors COMPUTE_BCD_OVERFLOW
Except. CX_SY_ARITHMETIC_OVERFLOW
Short text
Overflow during the arithmetical operation (type P) in program
Thanks in Advance!
Regards,
PavanHi,
I can see that there are several SAP notes regarding this issue, you just need to check their symptons and if they are valid for your SAP_APPL release and support package.
Here are the SAP notes:
- 1295055: Product cost collector: Field AFPO-WEMNG set incorrectly
- 964308: COMPUTE_BCD_OVERFLOW in CKMO_GET_ORD_HIST_NETWR_MMIM
I hope they help you.
Regards,
Marcelo -
I'm not sure how or why this is happening and it has just started...I tried to update and then it would not allow me to open the file at all giving me a runtime error message and multiple windows (because of the help feature). It has been successfully reinstalled but I'm still getting the error message...what do I do?
Hello, MommaLloyd24.
Thank you for visiting Apple Support Communities.
Here are the steps I would recommend going through as they should resolve the issue.
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
Jason H. -
Getting a run time error R6034 when updating itunes
Itunes trying to load incorrectly
Not sure why this thread bubbled up, but for more recent advice on this topic see Troubleshooting issues with iTunes for Windows updates.
tt2
Maybe you are looking for
-
Change Request Management in Implementation projects or not?
Hello guys, We are starting a Change Request Management project at a customer. We discuss in the blueprint phase whether we should be using it only for maintenance activities, and not for implementation projects. We have some people that can be wo
-
This morning the phone said new software was available so I downloaded and upgraded my system to os7. During startup it requested an icloud password, but never any other passowrd. So imagine my surprise when I tried to sue the phone and it was disabl
-
Groups field in Windows Active Directory doesn't get updated
Hello IDM Experts, I am trying to append one more group to a few hundred users in AD. When I run the below code, I am not getting any error and at the same time the groups field in AD doesn't seem to get updated either. Any thoughts? Thanks! <Activit
-
Client provisioning exception for guest flow - bug?
hi all, I encounterd one problem with guest flow and client provisioning. Please if someone could confirm that this can or can't be done I want to accomplish such a scenario: - AD user have to download the full nac agent - AD user from specific grou
-
Hi all , I am not maintaining AUTO GR parameter in Control KEy Of operation that is PP01 , instead of that AUTO GR parametr are maintained at OPKP (SCHEDULING parameter - Auto Goods receipt Tick ). My q's is : How the system will come to know that th