Changing format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Hello
does anyone know how to use VBA to conver one formate of database to another formate of database when it is loaded?

Please HELP!!!

Thank you
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
In Access can't you use Macro > TransferDatabase and then choose the format that you require and export.

Then do the same again but use Import.

I don't know much about access.
 
Upvote 0
I don't know very much about access either. I am using excel, but when I go to macro I can't find transferdatabase there.
Is Access the only place where I can do that?
 
Upvote 0
Yes, its under macros in Access.

Macros in Access are tottally diferent to Macros in Excel. You can still write code in Modules though. The Macros in Access are made up from pre determined procedures that you link together. You should see when you look.

Good Luck :eek:)
 
Upvote 0
Thank you Gary for the information
Also, do you know how to write the code in module or the procedure of coding in module to do the formating in excel by any chance?
I just learned how to use VBA 3 days ago.
Thanks again
 
Upvote 0
I am trying to do a data formating. For example if I have a data
Color Taste
3 4
5 6

can I change its format to
Color 3 5
Taste 4 6
 
Upvote 0
Try this (If you want you can record a macro to do the steps).

  • Select the range.
  • Copy it.
  • Click on an empty cell (Preferably on an empty worksheet)
  • Go to Edit, Paste Special, and Click on Transpose.
  • Insert a column that acts as your "first" column
  • Put a "1" (Without the quotes) in the first cell of that "new" column.
  • Press Control, and drag the fill handle all the way down until you have all your data covered.
  • Select the first cell again.
  • Go to Data, Sort, select the first column and select "Descending"
  • Eliminate this "new" column

Now, you can stop the macro. I think that will help.

_________________
Regards,

Juan Pablo G.
MrExcel.com Consulting
This message was edited by Juan Pablo G. on 2002-02-28 23:17
 
Upvote 0
Thank you so much for helping
so, once I have recorded the macro, how can I set up the macro. So when the file to be formated can run the macro automatically when the file is loaded to the excel?
 
Upvote 0

Forum statistics

Threads
1,223,350
Messages
6,171,584
Members
452,411
Latest member
colpie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top