![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
I'm sure this is an easy one, but I don't know it.
I'm using the text to values idea of putting a 1 in a far away cell, copying it and paste special with multipy in the text area. The range that is text changes from import to import and I want the user to be able to define the range, rather that just being stuck with the origional cell references from when I recorded the macro. I tried using the Relative Reference option but must of done something wrong as I kept getting errors. Can someone help? Thanks Matt |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Selection.NumberFormat = "General" Selection.TextToColumns DataType:=xlFixedWidth, _ FieldInfo:=Array(0, 1) Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
Thanks... what do the (0 , 1) bits do? I'm still a bit of a newbee to VBA
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
1 General 2 Text 3 MDY date 4 DMY date 5 YMD date 6 MYD date 7 DYM date 8 YDM date 9 Skip the column Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|