some vba coding from pseudo code

vofzxy

New Member
Joined
May 2, 2013
Messages
8
good day all, i have a "simple" issue, it's just i do not know how vba works,
i have done basic C /matlab but thats about it

ok here goes i have 2 problems i HOPE to solve

situation: 2 cols of data (54k long ><" ) col A & B
aim: copy data from col B to col A, only if the cell in col A is blank

PSEUDO CODE:

//I KNOW LOL, THANKS FOR STARTING AT 1 NOT 0
VAR X =1


// check cell AX is empty, else copy from cell BX
if sheet.cell.A(X) == isblank();
sheet.cell.A(X) = sheet.cell.B(X)


//check for last row
if sheet.cell.A(X) == isblank() & sheet.cell.B(X) == isblank();
exit

// increase X
X++

//loop?


2nd situation: i have data is MM/DD/YYYY, I want to convert them to YYYYMMDD

i really do not have any idea on this, i am thinking in terms of reading each digit putting them in some LONG CHAR
or individual "BOXES" and reading them backwards

is it possible?

cheers

thanks so much.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,216,531
Messages
6,131,209
Members
449,636
Latest member
ajdebm

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